Skip to content

Commit

Permalink
clear allocated persistent memory on module shut down zenovich#30
Browse files Browse the repository at this point in the history
  • Loading branch information
zenovich committed Sep 30, 2012
1 parent 56ed7b4 commit 646cf85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ PHP_MINIT_FUNCTION(runkit)
*/
PHP_MSHUTDOWN_FUNCTION(runkit)
{
#ifdef ZEND_ENGINE_2
pefree(RUNKIT_G(removed_function), 1);
pefree(RUNKIT_G(removed_method), 1);
#endif
#if defined(PHP_RUNKIT_SUPERGLOBALS) || defined(PHP_RUNKIT_MANIPULATION)
UNREGISTER_INI_ENTRIES();
#endif
Expand Down

0 comments on commit 646cf85

Please sign in to comment.