aboutsummaryrefslogtreecommitdiffstats
path: root/package/opkg/patches
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-10-15 01:05:25 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-10-15 01:05:25 +0000
commitbc3d7f54b90c20355719f1cf5d24bc84844c109e (patch)
tree39d1654aa7051a5d192ee1d1573c119c7d028775 /package/opkg/patches
parentcee460f6420c534e227d7623c8e3af51975eca5d (diff)
downloadmaster-187ad058-bc3d7f54b90c20355719f1cf5d24bc84844c109e.tar.gz
master-187ad058-bc3d7f54b90c20355719f1cf5d24bc84844c109e.tar.bz2
master-187ad058-bc3d7f54b90c20355719f1cf5d24bc84844c109e.zip
[package] opkg: fix a double free of pkg vectors when recursively removing packages due to --autoremove
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28458 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/opkg/patches')
-rw-r--r--package/opkg/patches/030-fix-double-free.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/opkg/patches/030-fix-double-free.patch b/package/opkg/patches/030-fix-double-free.patch
new file mode 100644
index 0000000000..312e06c548
--- /dev/null
+++ b/package/opkg/patches/030-fix-double-free.patch
@@ -0,0 +1,10 @@
+--- a/libopkg/opkg_remove.c
++++ b/libopkg/opkg_remove.c
+@@ -138,7 +138,6 @@ opkg_remove_dependent_pkgs(pkg_t *pkg, a
+ for (i = 0; i < dependent_pkgs->len; i++) {
+ err = opkg_remove_pkg(dependent_pkgs->pkgs[i],0);
+ if (err) {
+- pkg_vec_free(dependent_pkgs);
+ break;
+ }
+ }