From 4d68092e2fd8c8a3b6da39e509ad48db0fc9ed7a Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 6 Jan 2014 11:52:23 -0500 Subject: 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 Signed-off-by: Allan McRae --- src/pacman/package.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pacman/package.c') 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); } -- cgit v1.2.3-70-g09d2