mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 03:54:59 -05: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)) {
|
if(filter(pkg)) {
|
||||||
display(pkg);
|
display(pkg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(config->op_q_isfile) {
|
||||||
|
alpm_pkg_free(pkg);
|
||||||
|
pkg = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return(ret);
|
return(ret);
|
||||||
|
Loading…
Reference in New Issue
Block a user