]> granicus.if.org Git - php/commitdiff
Fix memory leak
authorAnatol Belski <ab@php.net>
Sat, 30 Mar 2019 22:04:52 +0000 (23:04 +0100)
committerAnatol Belski <ab@php.net>
Sat, 30 Mar 2019 22:04:52 +0000 (23:04 +0100)
ext/standard/string.c

index 91cb14da4b470ea8971c43d22c84b78b01ff2109..194ce9ff34beceb867f2a74b5c72e33db90e9a68 100644 (file)
@@ -4954,6 +4954,7 @@ PHP_FUNCTION(parse_str)
        } else  {
                arrayArg = zend_try_array_init(arrayArg);
                if (!arrayArg) {
+                       efree(res);
                        return;
                }