diff options
author | Dan McGee <dan@archlinux.org> | 2007-11-25 14:12:00 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-25 14:12:00 -0600 |
commit | c36b0f32c6f77cc363ed8f3ddc1a50625af944a9 (patch) | |
tree | 77265aa210cfca745c929812bd3a3751654a7040 | |
parent | 6e8daa553bbd50ec541add9549bfd95030c335f5 (diff) |
Fix memleak when querying package file(s)
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | src/pacman/query.c | 5 |
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); |