]> cygwin.com Git - cygwin-apps/setup.git/commitdiff
2001-11-06 Pavel Tsekov <ptsekov@syntrex.com> cygwin-1-3-4
authorRobert Collins <rbtcollins@hotmail.com>
Mon, 5 Nov 2001 13:00:36 +0000 (13:00 +0000)
committerRobert Collins <rbtcollins@hotmail.com>
Mon, 5 Nov 2001 13:00:36 +0000 (13:00 +0000)
        * fromcwd.cc (found_file): Free() memory containing the version and
        filepath information for a given package, before replacing the pointers which
        reference this memory.

ChangeLog
fromcwd.cc

index 8b006e7e635751e925fbdbb4ccb3d9b501fce369..b7d36fdb50fee6aae3430d7286892f06154a6446 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
-2001-11-03  Robert Collins  <rbtcollins@hotmail.com>
+2001-11-06  Pavel Tsekov  <ptsekov@syntrex.com>
+
+       * fromcwd.cc (found_file): Free() memory containing the version and
+       filepath information for a given package, before replacing the pointers which
+       reference this memory.
+
+2001-11-06  Robert Collins  <rbtcollins@hotmail.com>
 
        * fromcwd: Fix compiler warnings for cvsid.
        (canonicalize_version): Fix compilter warnings.
index cecbe48f202ef536699c081bdff2f3847324e079..14113bf1d178f3195ccbd51bb5e9fdc2e3fd2857 100644 (file)
@@ -119,8 +119,14 @@ found_file (char *path, unsigned int fsize)
        return;
     }
 
+  if (p->info[trust].version)
+    free(p->info[trust].version);
   p->info[trust].version = _strdup (f.ver);
+
+  if (p->info[trust].install)
+    free(p->info[trust].install);
   p->info[trust].install = _strdup (path);
+
   p->info[trust].install_size = fsize;
 }
 
This page took 0.035167 seconds and 5 git commands to generate.