deconfigure list is allocated in an obstack, but then freed with normal
free().
+Sat Aug 24 14:16:13 CDT 2002 Adam Heath <doogie@debian.org>
+
+ * lib/archives.c: Fix segfault when --auto-deconfigure is given. This is
+ causes because the deconfigure list is allocated in an obstack, but
+ then freed with normal free().
+
Thu Aug 22 23:37:45 CDT 2002 Adam Heath <doogie@debian.org>
* lib/database.c, lib/parse.c, lib/parsehelp.c, main/main.c: Fix several
* Handle directories better in md5sum. Closes: #157453.
* Fix read past buffer in lib/nfmalloc.c. Closes: #157304.
* Fix several read pass buffer bugs, and a memleak. Closes: #155362.
+ * Fix segfault when --auto-deconfigure is given. Closes: #157762.
-- Adam Heath <doogie@debian.org> UNRELEASED
}
}
pdep->up->up->clientdata->istobe= itb_deconfigure;
- ensureobstackinit();
- newdeconf= obstack_alloc(&tar_obs, sizeof(struct packageinlist));
+ newdeconf= malloc(sizeof(struct packageinlist));
newdeconf->next= deconfigure;
newdeconf->pkg= pdep->up->up;
deconfigure= newdeconf;