summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}