summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-01-06 11:52:23 -0500
committerAllan McRae <allan@archlinux.org>2014-01-30 13:46:58 +1000
commit4d68092e2fd8c8a3b6da39e509ad48db0fc9ed7a (patch)
tree277fce0cd1396ad4b744ba995ea604dd03bdda43 /src
parent6be08f76f6c4188f0aa4d0a4d88595a898bf3d3b (diff)
downloadpacman-4d68092e2fd8c8a3b6da39e509ad48db0fc9ed7a.tar.xz
dump_pkg_full: fix optionalfor memory leak
alpm_pkg_compute_optional returns a generated list that needs to be free'd. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/package.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/package.c b/src/pacman/package.c
index e4d3e3ab..3be996db 100644
--- a/src/pacman/package.c
+++ b/src/pacman/package.c
@@ -235,6 +235,7 @@ void dump_pkg_full(alpm_pkg_t *pkg, int extra)
printf("\n");
FREELIST(requiredby);
+ FREELIST(optionalfor);
alpm_list_free(validation);
}