* 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-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.
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;
}