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

From: Date: Tue, 21 Jun 2016 17:10:02 +0000
Subject: com php-src: re-fix leak: ext/wddx/wddx.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92577@lists.php.net to get a copy of this message
Commit: 03106e8c5e1a59e79891d9b45b5d3f1f326116d4 Author: Anatol Belski <ab@php.net> Tue, 21 Jun 2016 15:21:58 +0200 Parents: a21202a604d5692a385a83f677b9f38b75664ce1 Branches: PHP-7.0.8 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=03106e8c5e1a59e79891d9b45b5d3f1f326116d4 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 (#92577) next »