summaryrefslogtreecommitdiffstats
path: root/expac.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-10-20 21:47:59 -0400
committerDave Reisner <dreisner@archlinux.org>2011-10-20 21:48:16 -0400
commit4fc5efb6c299f9316a6a9d33a2fa6be8f14f88af (patch)
tree7ed855a26a5f4aac06c5cf2c4a93f0f68967e472 /expac.c
parent7ec0a2ff1e1df2d80415a1ffbb42dbac27c11c79 (diff)
downloadexpac-4fc5efb6c299f9316a6a9d33a2fa6be8f14f88af.tar.xz
free_inner results when --file is used
Diffstat (limited to 'expac.c')
-rw-r--r--expac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/expac.c b/expac.c
index 0f944c6..0e123cc 100644
--- a/expac.c
+++ b/expac.c
@@ -637,6 +637,9 @@ int main(int argc, char *argv[]) {
}
ret = !!ret; /* clamp to zero/one */
+ if(localpkg) {
+ alpm_list_free_inner(results, (alpm_list_fn_free)alpm_pkg_free);
+ }
alpm_list_free(results);
finish: