diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-01-06 20:30:22 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-01-06 21:23:26 +0200 |
commit | 0314104d93b831f53a9ab21622ba61aa49b7cccd (patch) | |
tree | 765232ec3cd7a150cf3af46b425f43fdaf83dfc8 /src/package.c | |
parent | 5e2aca267883a03dae8193eda9328a48b187fe84 (diff) | |
download | apk-tools-0314104d93b831f53a9ab21622ba61aa49b7cccd.tar.gz apk-tools-0314104d93b831f53a9ab21622ba61aa49b7cccd.tar.bz2 apk-tools-0314104d93b831f53a9ab21622ba61aa49b7cccd.tar.xz apk-tools-0314104d93b831f53a9ab21622ba61aa49b7cccd.zip |
db, pkg: fix rest of memory leaks
Diffstat (limited to 'src/package.c')
-rw-r--r-- | src/package.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/package.c b/src/package.c index 8a87b14..875c001 100644 --- a/src/package.c +++ b/src/package.c @@ -380,6 +380,8 @@ void apk_pkg_free(struct apk_package *pkg) hlist_for_each_entry_safe(script, c, n, &pkg->scripts, script_list) free(script); + if (pkg->depends) + free(pkg->depends); if (pkg->version) free(pkg->version); if (pkg->url) |