php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch apc-3.1.12-regex-no-pefree.patch for APC Bug #62515

Patch version 2012-08-29 19:53 UTC

Return to Bug #62515 | Download this patch
Patch Revisions:

Developer: bof@bof.de

--- APC-3.1.12/apc.c	2012-08-16 17:56:11.000000000 +0200
+++ APC-3.1.12-bof/apc.c	2012-08-29 21:50:44.874087700 +0200
@@ -520,12 +520,6 @@
 {
     if (p != NULL) {
         apc_regex* regs = (apc_regex*) p;
-        if (regs->preg) {
-            pefree(regs->preg, 1);
-        }
-        if (regs->nreg) {
-            pefree(regs->nreg, 1);
-        }
         apc_efree(regs TSRMLS_CC);
     }
 }
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC