diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-01 21:49:25 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-01 21:49:25 (EST) |
commit | 5c617e296570ed33196988e96481a4ef3e6e626e (patch) | |
tree | b586b67a632738722629882b7e1814055080bdcb /libopkg | |
parent | 90e7aaf73bf13ddffddb746ce3627f26d53ed703 (diff) |
Free memory if we fail to remove a package due to it having dependents.
git-svn-id: http://opkg.googlecode.com/svn/trunk@237 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r-- | libopkg/opkg_remove.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libopkg/opkg_remove.c b/libopkg/opkg_remove.c index 3886ccc..12de678 100644 --- a/libopkg/opkg_remove.c +++ b/libopkg/opkg_remove.c @@ -269,6 +269,7 @@ int opkg_remove_pkg(opkg_conf_t *conf, pkg_t *pkg,int message) if (!conf->force_removal_of_dependent_packages && !user_prefers_removing_dependents(conf, parent_pkg, pkg, dependents)) { + free(dependents); return OPKG_PKG_HAS_DEPENDENTS; } |