summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: