com php-src: fix memory leak: ext/wddx/wddx.c

From: Date: Tue, 08 Nov 2016 11:12:58 +0000
Subject: com php-src: fix memory leak: ext/wddx/wddx.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95446@lists.php.net to get a copy of this message
Commit: d6d08f97cddd3bb12e9346c0aa59977c876dae0e Author: Anatol Belski <ab@php.net> Tue, 8 Nov 2016 12:12:58 +0100 Parents: 33766347cbf6acb83ec3df23318b534ec0f40c48 Branches: PHP-5.6 PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d6d08f97cddd3bb12e9346c0aa59977c876dae0e Log: fix memory leak Changed paths: M ext/wddx/wddx.c Diff: diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 59cc8dd..069ea12 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -1012,6 +1012,7 @@ static void php_wddx_pop_element(void *user_data, const XML_Char *name) } if (pce != &PHP_IC_ENTRY && ((*pce)->serialize || (*pce)->unserialize)) { + zval_ptr_dtor(&ent2->data); ent2->data = NULL; php_error_docref(NULL TSRMLS_CC, E_WARNING, "Class %s can not be unserialized", Z_STRVAL_P(ent1->data)); } else {

« previous php.cvs (#95446) next »