com php-src: fix leak: ext/wddx/wddx.c
| From: | Ferenc Kovacs | Date: | Wed, 22 Jun 2016 01:50:22 +0000 |
| Subject: | com php-src: fix leak: ext/wddx/wddx.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92594@lists.php.net to get a copy of this message | ||
Commit: db18c87e77e43cf9da44cecbed391c34d56134e0
Author: Anatol Belski <ab@php.net> Tue, 21 Jun 2016 12:29:41 +0200
Committer: Ferenc Kovacs <tyrael@php.net> Wed, 22 Jun 2016 03:50:22 +0200
Parents: 1cfd6996d4dc9b32bf2dbecf2a0d184f2139081f
Branches: PHP-5.6.23
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=db18c87e77e43cf9da44cecbed391c34d56134e0
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")) {