mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 00:48:27 +02:00
[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
This commit is contained in:
parent
99ec82edb9
commit
66e5badb52
@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||
PKG_NAME:=opkg
|
||||
PKG_REV:=618
|
||||
PKG_VERSION:=$(PKG_REV)
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE_PROTO:=svn
|
||||
PKG_SOURCE_VERSION:=$(PKG_REV)
|
||||
|
10
package/opkg/patches/030-fix-double-free.patch
Normal file
10
package/opkg/patches/030-fix-double-free.patch
Normal file
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user