Permalink
Browse files

clear allocated persistent memory on module shut down #30

  • Loading branch information...
1 parent 56ed7b4 commit 646cf85956cd3fcb3b0bfa3d18d35df6e9de2ad7 @zenovich committed Sep 30, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 runkit.c
View
@@ -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

0 comments on commit 646cf85

Please sign in to comment.