Skip to content

Commit 5605dcf

Browse files
author
Sterling Hughes
committed
fix a memory leak in implode()
# kept seperate from last commit on purpose.. ;)
1 parent abc9991 commit 5605dcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/standard/string.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,10 @@ PHP_FUNCTION(implode)
899899
}
900900

901901
php_implode(delim, arr, return_value);
902+
zval_ptr_dtor(arg1);
903+
if (arg2) {
904+
zval_ptr_dtor(arg2);
905+
}
902906
}
903907
/* }}} */
904908

0 commit comments

Comments
 (0)