[pacman-dev] [PATCH 4/8] dump_pkg_full: fix optionalfor memory leak
Andrew Gregory
andrew.gregory.8 at gmail.com
Mon Jan 6 11:52:23 EST 2014
alpm_pkg_compute_optional returns a generated list that needs to be
free'd.
Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
src/pacman/package.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/pacman/package.c b/src/pacman/package.c
index 8ccdc1b..be01f63 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);
}
--
1.8.5.2
More information about the pacman-dev
mailing list