summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2015-11-01 19:56:06 +0100
committerAllan McRae <allan@archlinux.org>2015-11-04 06:06:08 +0100
commit726712aa08bb9699b5cea71a4a7a997551e9d7c8 (patch)
tree40b568f633410b8ace6fed0be62b401cdd363af3 /src
parent978b197120f3a942cad36726e9678fbbabe3e660 (diff)
downloadpacman-726712aa08bb9699b5cea71a4a7a997551e9d7c8.tar.gz
pacman-726712aa08bb9699b5cea71a4a7a997551e9d7c8.tar.xz
files_search: free compiled regex
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
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) {