1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-21 23:38:49 -05:00

files_search: free compiled regex

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andrew Gregory 2015-11-01 13:56:06 -05:00 committed by Allan McRae
parent 978b197120
commit 726712aa08

View File

@ -169,6 +169,9 @@ static int files_search(alpm_list_t *syncs, alpm_list_t *targets, int regex) {
}
}
if(regex) {
regfree(&reg);
}
notfound:
if(!found) {