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

From: Date: Tue, 21 Jun 2016 13:18:10 +0000
Subject: com php-src: re-fix leak: ext/wddx/wddx.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92567@lists.php.net to get a copy of this message
Commit: a00350486f502c7d587229cb2a3182279212d129 Author: Anatol Belski <ab@php.net> Tue, 21 Jun 2016 15:18:10 +0200 Parents: e6cc30e167c92e035f5b7e270bedc579ac3a54d7 Branches: PHP-5.6 PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a00350486f502c7d587229cb2a3182279212d129 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 2cbad93..6a23fa1 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -834,6 +834,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(atts[i], EL_NAME) && atts[++i] && atts[i][0]) { + if (stack->varname) efree(stack->varname); stack->varname = estrdup(atts[i]); break; }

« previous php.cvs (#92567) next »