From: Sascha Schumann Date: Fri, 28 May 1999 21:27:19 +0000 (+0000) Subject: Either I'm playing the EG(symbol_table) game wrong or var.c leaks memory X-Git-Tag: BEFORE_REMOVING_GC_STEP1~253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7401ef12fba944c7d8a0a1473e9ec3ce473fa3ff;p=php Either I'm playing the EG(symbol_table) game wrong or var.c leaks memory when unserializing arrays/objects. Still testing --- diff --git a/ext/standard/var.c b/ext/standard/var.c index f7fa1fd551..53f95d4599 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -355,6 +355,7 @@ int php3api_var_unserialize(pval **rval, char **p, char *max) return 0; } if (!php3api_var_unserialize(&data, p, max)) { + pval_destructor(key); efree(key); efree(data); return 0;