diff options
author | Anatol Belski <ab@php.net> | 2019-03-30 23:04:52 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2019-03-30 23:04:52 +0100 |
commit | ba2269ab9e88e6acc4f3626527ed5ccd24f02872 (patch) | |
tree | 56ef822257416ee794dcde1060ac2eddb88d3519 /ext | |
parent | 4d028a9ee9c95f413253cc71df3eaccef492aeb1 (diff) | |
download | php-git-ba2269ab9e88e6acc4f3626527ed5ccd24f02872.tar.gz |
Fix memory leak
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/string.c | 1 |
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; } |