summaryrefslogtreecommitdiff
path: root/src/del.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2018-01-03 09:30:12 +0200
committerTimo Teräs <timo.teras@iki.fi>2018-01-03 09:30:12 +0200
commit8ee79c72b2a6ad5971895bc3a95e633211962107 (patch)
tree83b12ae7eea7055982746f9912046a454f4a5bde /src/del.c
parent667cb6bca799e58f58f22ad868761c022c6600dc (diff)
downloadapk-tools-8ee79c72b2a6ad5971895bc3a95e633211962107.tar.gz
apk-tools-8ee79c72b2a6ad5971895bc3a95e633211962107.tar.bz2
apk-tools-8ee79c72b2a6ad5971895bc3a95e633211962107.tar.xz
apk-tools-8ee79c72b2a6ad5971895bc3a95e633211962107.zip
apk, del: fix few memory leaks
This fixes couple of valgrind reported leaks - though they are non-important since the leak happens on "exit" only and kernel frees it anyway.
Diffstat (limited to 'src/del.c')
-rw-r--r--src/del.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/del.c b/src/del.c
index 1c43883..5756a3a 100644
--- a/src/del.c
+++ b/src/del.c
@@ -151,6 +151,7 @@ static int del_main(void *pctx, struct apk_database *db, struct apk_string_array
} else {
apk_solver_print_errors(db, &changeset, ctx->world);
}
+ apk_change_array_free(&changeset.changes);
apk_dependency_array_free(&ctx->world);
return r;