aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-12-29 23:34:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-12-29 23:34:27 +0000
commitf7c49d154c42f450a2aff56a6461b2cad6231d1a (patch)
treed852b622a7d6365b9cb9db371bef63e17e205a0c /package/busybox/patches
parentdea1fa08ea1eff44d96a714af612fdb76443bbf0 (diff)
downloadupstream-f7c49d154c42f450a2aff56a6461b2cad6231d1a.tar.gz
upstream-f7c49d154c42f450a2aff56a6461b2cad6231d1a.tar.bz2
upstream-f7c49d154c42f450a2aff56a6461b2cad6231d1a.zip
fix a horrible memleak in ipkg (#2702)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10036 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/patches')
-rw-r--r--package/busybox/patches/522-memleak.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/busybox/patches/522-memleak.patch b/package/busybox/patches/522-memleak.patch
new file mode 100644
index 0000000000..1bcfb8f408
--- /dev/null
+++ b/package/busybox/patches/522-memleak.patch
@@ -0,0 +1,24 @@
+Index: busybox-1.8.2/archival/libipkg/ipkg_install.c
+===================================================================
+--- busybox-1.8.2.orig/archival/libipkg/ipkg_install.c 2007-12-30 00:02:53.577161007 +0100
++++ busybox-1.8.2/archival/libipkg/ipkg_install.c 2007-12-30 00:03:14.042327251 +0100
+@@ -500,6 +500,7 @@
+ }
+ }
+ }
++ pkg_free_installed_files(new_pkg);
+ return 0;
+ }
+
+Index: busybox-1.8.2/archival/libipkg/pkg.c
+===================================================================
+--- busybox-1.8.2.orig/archival/libipkg/pkg.c 2007-12-30 00:27:32.001919565 +0100
++++ busybox-1.8.2/archival/libipkg/pkg.c 2007-12-30 00:27:34.426057709 +0100
+@@ -1668,6 +1668,7 @@
+ // ipkg_message(conf, IPKG_DEBUG2, "pkg %s: file=%s\n", pkg->name, installed_file);
+ file_hash_set_file_owner(conf, installed_file, pkg);
+ }
++ pkg_free_installed_files(pkg);
+ }
+ pkg_vec_free(installed_pkgs);
+