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

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 29 Dec 2009 15:22:49 +0000

derick Tue, 29 Dec 2009 15:22:49 +0000

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

Log:
- Fixed two memory leaks.

Changed paths:
    U xdebug/trunk/xdebug_var.c

Modified: xdebug/trunk/xdebug_var.c
===================================================================
--- xdebug/trunk/xdebug_var.c 2009-12-29 15:20:08 UTC (rev 3175)
+++ xdebug/trunk/xdebug_var.c 2009-12-29 15:22:49 UTC (rev 3176)
@@ -926,6 +926,7 @@
         xdebug_str_addl(&str, "</pre>", 6, 0);

         if (default_options) {
+ xdfree(options->runtime);
                 xdfree(options);
         }

@@ -995,6 +996,7 @@
         xdebug_var_synopsis_fancy(&val, (xdebug_str*) &str, 1, debug_zval, options TSRMLS_CC);

         if (default_options) {
+ xdfree(options->runtime);
                 xdfree(options);
         }
Received on Tue Dec 29 2009 - 15:22:49 GMT

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