summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorPeter Korsgaard2017-07-05 11:53:58 +0200
committerDenys Vlasenko2017-07-05 23:15:13 +0200
commitd13c1762a8d0ae70253b9775237cee64d02fae3b (patch)
tree1799454548558c242148629e7cca7f5e50787fb0 /archival
parentbd43c6784fb53826806c7cb51a1ed54e95eb4be9 (diff)
downloadbusybox-d13c1762a8d0ae70253b9775237cee64d02fae3b.zip
busybox-d13c1762a8d0ae70253b9775237cee64d02fae3b.tar.gz
dpkg: fix CONFIG_FEATURE_CLEAN_UP handling
dpkg moved to away from dynamically allocating the hashtables in commit c87339d584 (dpkg: trivial code shrinkage, and redo G trick correctly) almost ten years ago, but the cleanup code was never adjusted to match. Glibc loudly complains about this: *** Error in `dpkg': free(): invalid pointer: 0x0000007fac3478c0 *** Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival')
-rw-r--r--archival/dpkg.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 1cd45ed..da3b086 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -1938,10 +1938,6 @@ int dpkg_main(int argc UNUSED_PARAM, char **argv)
for (i = 0; i < STATUS_HASH_PRIME; i++) {
free(status_hashtable[i]);
}
-
- free(status_hashtable);
- free(package_hashtable);
- free(name_hashtable);
}
return EXIT_SUCCESS;