cvs: /php4/ext/standard var.c

From: Date: Thu, 09 Dec 1999 11:25:22 +0000
Subject: cvs: /php4/ext/standard var.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-7710@lists.php.net to get a copy of this message
thies Thu Dec 9 06:25:22 1999 EDT Modified files: /php4/ext/standard var.c Log: (unserialize) closed mem-leak Index: php4/ext/standard/var.c diff -u php4/ext/standard/var.c:1.36 php4/ext/standard/var.c:1.37 --- php4/ext/standard/var.c:1.36 Wed Dec 8 09:40:46 1999 +++ php4/ext/standard/var.c Thu Dec 9 06:24:51 1999 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: var.c,v 1.36 1999/12/08 14:40:46 thies Exp $ */ +/* $Id: var.c,v 1.37 1999/12/09 11:24:51 thies Exp $ */ /* {{{ includes @@ -435,13 +435,15 @@ pval *data = emalloc(sizeof(pval)); if (!php_var_unserialize(&key, p, max)) { - efree(key); + zval_dtor(key); + efree(key); efree(data); return 0; } if (!php_var_unserialize(&data, p, max)) { - pval_destructor(key); + zval_dtor(key); efree(key); + zval_dtor(data); efree(data); return 0; }

« previous php.version4 (#7710) next »