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

From: Date: Tue, 21 Jun 2016 13:21:58 +0000
Subject: com php-src: re-fix leak: ext/wddx/wddx.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92566@lists.php.net to get a copy of this message
Commit: 5a9f0c77ad92b2c13ff3865529636f2c9bfb4974 Author: Anatol Belski <ab@php.net> Tue, 21 Jun 2016 15:21:58 +0200 Parents: 7002c32809c0bf2876e22168e4b0f4d04d9d0a7b Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5a9f0c77ad92b2c13ff3865529636f2c9bfb4974 Log: re-fix leak Changed paths: M ext/wddx/wddx.c Diff: diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 34b8eeb..2cc3c8b 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -784,6 +784,7 @@ static void php_wddx_push_element(void *user_data, const XML_Char *name, const X if (atts) for (i = 0; atts[i]; i++) { if (!strcmp((char *)atts[i], EL_NAME) && atts[++i] && atts[i][0]) { + if (stack->varname) efree(stack->varname); stack->varname = estrdup((char *)atts[i]); break; }

« previous php.cvs (#92566) next »