diff options
Diffstat (limited to 'ext/json/json.c')
-rw-r--r-- | ext/json/json.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/json.c b/ext/json/json.c index c335707cb3..73bb079620 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -486,6 +486,7 @@ PHPAPI void php_json_decode(zval *return_value, char *str, int str_len, zend_boo if (depth <= 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Depth must greater than zero"); + efree(utf16); RETURN_NULL(); } |