From f078cb6bc72ab68284013c2cf56f06bd099b86d3 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Tue, 27 Apr 2010 12:49:12 +0200 Subject: [PATCH] Properly free() the pattern in exclude_clear() Fixes a tiny, insignificant memory leak. --- src/exclude.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/exclude.c b/src/exclude.c index 1219359..2974b9f 100644 --- a/src/exclude.c +++ b/src/exclude.c @@ -93,6 +93,7 @@ void exclude_clear() { for(n=excludes; n!=NULL; n=l) { l = n->next; + free(n->pattern); free(n); } excludes = NULL;