com php-src: fix leak: ext/wddx/wddx.c
| From: | Anatol Belski | Date: | Tue, 21 Jun 2016 10:29:41 +0000 |
| Subject: | com php-src: fix leak: ext/wddx/wddx.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92561@lists.php.net to get a copy of this message | ||
Commit: c5d9c508976bb289c265d99938bda4dbf14622d3
Author: Anatol Belski <ab@php.net> Tue, 21 Jun 2016 12:29:41 +0200
Parents: 6d7500c14cf92948e177521134cf6c04701d4551
Branches: PHP-5.6 PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c5d9c508976bb289c265d99938bda4dbf14622d3
Log:
fix leak
Changed paths:
M ext/wddx/wddx.c
Diff:
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c
index 2cbad93..0a6c4dc 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -1095,6 +1095,10 @@ static void php_wddx_process_data(void *user_data, const XML_Char *s, int
len)
case ST_BOOLEAN:
if(!ent->data) {
+ if (ent->varname) {
+ efree(ent->varname);
+ ent->varname = NULL;
+ }
break;
}
if (!strcmp(s, "true")) {