summaryrefslogtreecommitdiff
path: root/ext/java/java.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/java/java.c')
-rw-r--r--ext/java/java.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/java/java.c b/ext/java/java.c
index 037e43bdbd..db8188f2c5 100644
--- a/ext/java/java.c
+++ b/ext/java/java.c
@@ -500,7 +500,7 @@ JNIEXPORT void JNICALL Java_net_php_reflect_setResultFromObject
zend_hash_init(presult->value.obj.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
};
- handle = (pval *) emalloc(sizeof(pval));
+ handle = ALLOC_ZVAL();
handle->type = IS_LONG;
handle->value.lval =
zend_list_insert((*jenv)->NewGlobalRef(jenv,value), le_jobject);