diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-11-01 19:56:06 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-11-04 06:06:08 +0100 |
commit | 726712aa08bb9699b5cea71a4a7a997551e9d7c8 (patch) | |
tree | 40b568f633410b8ace6fed0be62b401cdd363af3 /src | |
parent | 978b197120f3a942cad36726e9678fbbabe3e660 (diff) | |
download | pacman-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.c | 3 |
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(®); + } notfound: if(!found) { |