summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-25 14:12:00 -0600
committerDan McGee <dan@archlinux.org>2007-11-25 14:12:00 -0600
commitc36b0f32c6f77cc363ed8f3ddc1a50625af944a9 (patch)
tree77265aa210cfca745c929812bd3a3751654a7040 /src
parent6e8daa553bbd50ec541add9549bfd95030c335f5 (diff)
downloadpacman-c36b0f32c6f77cc363ed8f3ddc1a50625af944a9.tar.xz
Fix memleak when querying package file(s)
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/query.c5
1 files changed, 5 insertions, 0 deletions
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);