From: Felipe Pena Date: Wed, 24 Jun 2009 17:39:36 +0000 (+0000) Subject: - Fixed memleak when depth arg is less than zero X-Git-Tag: php-5.4.0alpha1~191^2~3245 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5cb9c95b4fe05987a84e08a784a8db2c8867506;p=php - Fixed memleak when depth arg is less than zero --- diff --git a/ext/json/json.c b/ext/json/json.c index 841ce25e55..b8d30e75b3 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -544,6 +544,7 @@ static PHP_FUNCTION(json_decode) if (depth <= 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Depth must greater than zero"); + efree(utf16); RETURN_NULL(); }