2 Nov
2015
2 Nov
'15
1:41 a.m.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> --- src/pacman/files.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pacman/files.c b/src/pacman/files.c index ef48f96..c2231cd 100644 --- a/src/pacman/files.c +++ b/src/pacman/files.c @@ -141,6 +141,9 @@ static int files_search(alpm_list_t *syncs, alpm_list_t *targets, int regex) { } } + if(regex) { + regfree(®); + } notfound: if(!found) { -- 2.6.2