com php-src: fix leak: ext/wddx/wddx.c
| From: | Anatol Belski | Date: | Wed, 17 Aug 2016 09:51:56 +0000 |
| Subject: | com php-src: fix leak: ext/wddx/wddx.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93874@lists.php.net to get a copy of this message | ||
Commit: a5d00fc90861bdb828e1d8bd30c9ce915efeb246
Author: Anatol Belski <ab@php.net> Wed, 17 Aug 2016 11:51:56 +0200
Parents: 1dab8e07f2e14221f534202e7d0c03600b3259eb
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a5d00fc90861bdb828e1d8bd30c9ce915efeb246
Log:
fix leak
Changed paths:
M ext/wddx/wddx.c
Diff:
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c
index b8b905d..31dfef4 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -1055,6 +1055,8 @@ static void php_wddx_process_data(void *user_data, const XML_Char *s, int len)
if (Z_LVAL(ent->data) == -1) {
ZVAL_STRINGL(&ent->data, (char *)tmp, len);
}
+
+ efree(tmp);
}
break;