[xdebug-dev] xdebug xdebug/xdebug.c - Fixed bad memory leak when a E_ERROR of exceeding memory_limit was thrown

From: Jani Taskinen <sniper[@]php.net>
Date: Mon, 5 Dec 2005 16:47:03 +0100

Date: Mon Dec 5 16:47:03 CET 2005
User: Jani Taskinen
Directory: xdebug

Log Message:
- Fixed bad memory leak when a E_ERROR of exceeding memory_limit was thrown
Modified files:
           xdebug/xdebug.c (version: 1.281)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.280
retrieving revision 1.281
diff -u -r1.280 -r1.281
--- xdebug/xdebug.c:1.280 Wed Oct 19 06:20:37 2005 GMT
+++ xdebug/xdebug.c Mon Dec 05 14:47:03 2005 GMT
@@ -1766,7 +1766,13 @@
                 case E_USER_ERROR:
                         EG(exit_status) = 255;
                         if (!XG(ignore_fatal_error)) {
+#if MEMORY_LIMIT
+ /* restore memory limit */
+ AG(memory_limit) = PG(memory_limit);
+#endif
+ efree(buffer);
                                 zend_bailout();
+ return;
                         }
                         break;
         }
Received on Mon Dec 05 2005 - 16:47:06 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST