summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/files.c3
1 files changed, 3 insertions, 0 deletions
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(&reg);
+ }
notfound:
if(!found) {