Skip to content

Commit

Permalink
Fix leaks in sapi tests
Browse files Browse the repository at this point in the history
Make sure to always free compiled_filename on shutdown.
  • Loading branch information
nikic committed Sep 3, 2020
1 parent 7620ea1 commit 9464576
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ void shutdown_compiler(void) /* {{{ */
FREE_HASHTABLE(CG(delayed_autoloads));
CG(delayed_autoloads) = NULL;
}
zend_restore_compiled_filename(NULL);
}
/* }}} */

Expand Down

0 comments on commit 9464576

Please sign in to comment.