[66017] trunk/base/src/pextlib1.0/realpath.c

jmr at macports.org jmr at macports.org
Sun Apr 4 19:27:36 PDT 2010


Revision: 66017
          http://trac.macports.org/changeset/66017
Author:   jmr at macports.org
Date:     2010-04-04 19:27:34 -0700 (Sun, 04 Apr 2010)
Log Message:
-----------
memory leak

Modified Paths:
--------------
    trunk/base/src/pextlib1.0/realpath.c

Modified: trunk/base/src/pextlib1.0/realpath.c
===================================================================
--- trunk/base/src/pextlib1.0/realpath.c	2010-04-05 01:49:46 UTC (rev 66016)
+++ trunk/base/src/pextlib1.0/realpath.c	2010-04-05 02:27:34 UTC (rev 66017)
@@ -73,8 +73,9 @@
         return TCL_ERROR;
     } else {
         tcl_result = Tcl_NewStringObj(rpath, -1);
+        free(rpath);
     }
-    
+
     Tcl_SetObjResult(interp, tcl_result);
     return TCL_OK;
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100404/757732d7/attachment.html>


More information about the macports-changes mailing list