projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
opkg: (leak fixing, day 2) lots and lots of memory leaks fixed
[oweals/opkg-lede.git]
/
libopkg
/
opkg_remove.c
diff --git
a/libopkg/opkg_remove.c
b/libopkg/opkg_remove.c
index 9288afc551cf6a95ab3a729469d93e5e7e545fa3..c8cfb5524f7202c54af29bb2a08bd61870d01e72 100644
(file)
--- a/
libopkg/opkg_remove.c
+++ b/
libopkg/opkg_remove.c
@@
-271,6
+271,8
@@
int opkg_remove_pkg(opkg_conf_t *conf, pkg_t *pkg,int message)
free(dependents);
if (err) return err;
}
+ if (dependents)
+ free(dependents);
}
if ( message==0 ){