summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
authorSean Finney <seanius@debian.org>2009-06-30 19:11:48 +0200
committerSean Finney <seanius@debian.org>2009-06-30 19:11:48 +0200
commitd3a8757891280dc6650ca7eead67830c794b0e7b (patch)
treefd17e4142019fe7af4eeb7a5c9e0bdade5388418 /ext/json/json.c
parent84f4ca9b07fe5b73d840258f4aa7c1eb534c4253 (diff)
downloadphp-d3a8757891280dc6650ca7eead67830c794b0e7b.tar.gz
Imported Upstream version 5.3.0upstream/5.3.0
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index ab049d56b..09a37bb56 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: json.c,v 1.9.2.19.2.23 2009/05/31 13:51:08 jani Exp $ */
+/* $Id: json.c,v 1.9.2.19.2.24 2009/06/24 17:39:52 felipe Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -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();
}