Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

clear allocated persistent memory on module shut down #30

  • Loading branch information...
commit 646cf85956cd3fcb3b0bfa3d18d35df6e9de2ad7 1 parent 56ed7b4
@zenovich authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 runkit.c
View
4 runkit.c
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.