summaryrefslogtreecommitdiff
path: root/src/package.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-06-12 10:16:34 +0300
committerTimo Teräs <timo.teras@iki.fi>2015-06-12 10:18:06 +0300
commitc4295e9cf8132588c84b1f4e5907b023cbc7a8f6 (patch)
tree75859d26edf87706cfd452fb95c32cdce2a0e0c8 /src/package.c
parent6b140ec5c719175393101d5f723371303e09426e (diff)
downloadapk-tools-c4295e9cf8132588c84b1f4e5907b023cbc7a8f6.tar.gz
apk-tools-c4295e9cf8132588c84b1f4e5907b023cbc7a8f6.tar.bz2
apk-tools-c4295e9cf8132588c84b1f4e5907b023cbc7a8f6.tar.xz
apk-tools-c4295e9cf8132588c84b1f4e5907b023cbc7a8f6.zip
for completeness free all arrays before exit
so valgrind does not report any leaks
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/package.c b/src/package.c
index 1a13b77..32b218a 100644
--- a/src/package.c
+++ b/src/package.c
@@ -940,6 +940,7 @@ void apk_pkg_free(struct apk_package *pkg)
apk_pkg_uninstall(NULL, pkg);
apk_dependency_array_free(&pkg->depends);
+ apk_dependency_array_free(&pkg->provides);
apk_dependency_array_free(&pkg->install_if);
if (pkg->url)
free(pkg->url);