diff --git a/src/pacman/files.c b/src/pacman/files.c index 3bb2f2ba..5baf5e57 100644 --- a/src/pacman/files.c +++ b/src/pacman/files.c @@ -169,6 +169,9 @@ static int files_search(alpm_list_t *syncs, alpm_list_t *targets, int regex) { } } + if(regex) { + regfree(®); + } notfound: if(!found) {