summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2019-03-30 23:04:52 +0100
committerAnatol Belski <ab@php.net>2019-03-30 23:04:52 +0100
commitba2269ab9e88e6acc4f3626527ed5ccd24f02872 (patch)
tree56ef822257416ee794dcde1060ac2eddb88d3519 /ext
parent4d028a9ee9c95f413253cc71df3eaccef492aeb1 (diff)
downloadphp-git-ba2269ab9e88e6acc4f3626527ed5ccd24f02872.tar.gz
Fix memory leak
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 91cb14da4b..194ce9ff34 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -4954,6 +4954,7 @@ PHP_FUNCTION(parse_str)
} else {
arrayArg = zend_try_array_init(arrayArg);
if (!arrayArg) {
+ efree(res);
return;
}