From c36b0f32c6f77cc363ed8f3ddc1a50625af944a9 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 25 Nov 2007 14:12:00 -0600 Subject: Fix memleak when querying package file(s) Signed-off-by: Dan McGee --- src/pacman/query.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pacman/query.c b/src/pacman/query.c index bb69527d..8af05e06 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -392,6 +392,11 @@ int pacman_query(alpm_list_t *targets) if(filter(pkg)) { display(pkg); } + + if(config->op_q_isfile) { + alpm_pkg_free(pkg); + pkg = NULL; + } } return(ret); -- cgit v1.2.3-70-g09d2