diff options
author | Peter Korsgaard <peter@korsgaard.com> | 2017-07-05 11:53:58 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-18 19:20:58 +0200 |
commit | 80cb8796f86754faa1569994b9355eeffe0b7759 (patch) | |
tree | b1ab6c18968e93363a5ae93161a838549124f990 | |
parent | ee67c9a60ab202cb8f8cc13d8670a90cbfad7963 (diff) | |
download | busybox-w32-80cb8796f86754faa1569994b9355eeffe0b7759.tar.gz busybox-w32-80cb8796f86754faa1569994b9355eeffe0b7759.tar.bz2 busybox-w32-80cb8796f86754faa1569994b9355eeffe0b7759.zip |
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>
-rw-r--r-- | archival/dpkg.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 1cd45eda4..da3b0864e 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -1938,10 +1938,6 @@ int dpkg_main(int argc UNUSED_PARAM, char **argv) | |||
1938 | for (i = 0; i < STATUS_HASH_PRIME; i++) { | 1938 | for (i = 0; i < STATUS_HASH_PRIME; i++) { |
1939 | free(status_hashtable[i]); | 1939 | free(status_hashtable[i]); |
1940 | } | 1940 | } |
1941 | |||
1942 | free(status_hashtable); | ||
1943 | free(package_hashtable); | ||
1944 | free(name_hashtable); | ||
1945 | } | 1941 | } |
1946 | 1942 | ||
1947 | return EXIT_SUCCESS; | 1943 | return EXIT_SUCCESS; |