[xdebug-dev] xdebug xdebug/xdebug.c - Fixed bug #290: Function call leaks memory.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sun, 8 Jul 2007 14:56:23 +0200

Date: Sun Jul 8 14:56:23 CEST 2007
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Fixed bug #290: Function call leaks memory.

Modified files:
           xdebug/xdebug.c (version: 1.397)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.396
retrieving revision 1.397
diff -u -r1.396 -r1.397
--- xdebug/xdebug.c:1.396 Thu Jul 05 17:08:37 2007 GMT
+++ xdebug/xdebug.c Sun Jul 08 10:56:23 2007 GMT
@@ -1332,7 +1332,9 @@
                 return;
         }
 
- XG(context).program_name = xdstrdup(op_array->filename);
+ if (!XG(context).program_name) {
+ XG(context).program_name = xdstrdup(op_array->filename);
+ }
 
         if (XG(level) == 0) {
                 /* Set session cookie if requested */
Received on Sun Jul 08 2007 - 14:56:26 BST

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