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

From: Date: Wed, 22 Jun 2016 01:50:40 +0000
Subject: com php-src: re-fix leak: ext/wddx/wddx.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92595@lists.php.net to get a copy of this message
Commit: 961e562d1b7e7d67c7370022a167938641d607ea Author: Anatol Belski <ab@php.net> Tue, 21 Jun 2016 15:18:10 +0200 Committer: Ferenc Kovacs <tyrael@php.net> Wed, 22 Jun 2016 03:50:40 +0200 Parents: e6bcc0bb0be04b8b242d6a62ddbe1cce42a8288e Branches: PHP-5.6.23 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=961e562d1b7e7d67c7370022a167938641d607ea 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 (#92595) next »