[79290] branches/gsoc11-rev-upgrade/base/src/registry2.0/registry.c

cal at macports.org cal at macports.org
Wed Jun 8 03:10:10 PDT 2011


Revision: 79290
          http://trac.macports.org/changeset/79290
Author:   cal at macports.org
Date:     2011-06-08 03:10:10 -0700 (Wed, 08 Jun 2011)
Log Message:
-----------
rev-upgrade: Fixed double-free

Modified Paths:
--------------
    branches/gsoc11-rev-upgrade/base/src/registry2.0/registry.c

Modified: branches/gsoc11-rev-upgrade/base/src/registry2.0/registry.c
===================================================================
--- branches/gsoc11-rev-upgrade/base/src/registry2.0/registry.c	2011-06-08 10:09:18 UTC (rev 79289)
+++ branches/gsoc11-rev-upgrade/base/src/registry2.0/registry.c	2011-06-08 10:10:10 UTC (rev 79290)
@@ -106,9 +106,6 @@
         if (files[i]->proc) {
             Tcl_DeleteCommand(interp, files[i]->proc);
         }
-        if (files[i]->key.path) {
-            free(files[i]->key.path);
-        }
     }
     free(files);
     if (!reg_detach(reg, errPtr)) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110608/fe9978af/attachment.html>


More information about the macports-changes mailing list