[xdebug-dev] svn: /xdebug/trunk/ xdebug_stack.c

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Mon, 25 Jan 2010 10:12:16 +0000

derick Mon, 25 Jan 2010 10:12:16 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=3213

Log:
- Make xdebug compile with PHP 5.2.
- Fixed a memory leak on when exceptions where thrown.

Changed paths:
    U xdebug/trunk/xdebug_stack.c

Modified: xdebug/trunk/xdebug_stack.c
===================================================================
--- xdebug/trunk/xdebug_stack.c 2010-01-11 23:23:08 UTC (rev 3212)
+++ xdebug/trunk/xdebug_stack.c 2010-01-25 10:12:16 UTC (rev 3213)
@@ -24,6 +24,8 @@
 #include "xdebug_superglobals.h"
 #include "xdebug_var.h"

+#include "main/php_ini.h"
+
 ZEND_EXTERN_MODULE_GLOBALS(xdebug)

 static char* text_formats[10] = {
@@ -491,6 +493,7 @@
                                         zend_throw_error_exception(exception_class, buffer, 0, type TSRMLS_CC);
                                 }
                                 efree(buffer);
+ xdfree(error_type_str);
                                 return;
                 }
         }
Received on Mon Jan 25 2010 - 10:12:17 GMT

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