mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-02 00:25:07 -04:00
Fix memleak when querying package file(s)
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
6e8daa553b
commit
c36b0f32c6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user