Skip to content

Commit ff8b389

Browse files
author
epriestley
committed
Fix a memory leak in the ignored function list
See: - <phacility#60> - <phacility#54>
1 parent a64844d commit ff8b389

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extension/xhprof.c

+5
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,11 @@ static inline uint8 hp_inline_hash(char * str) {
596596
* @author mpal
597597
*/
598598
static void hp_get_ignored_functions_from_arg(zval *args) {
599+
600+
if (hp_globals.ignored_function_names) {
601+
hp_array_del(hp_globals.ignored_function_names);
602+
}
603+
599604
if (args != NULL) {
600605
zval *zresult = NULL;
601606

0 commit comments

Comments
 (0)