Skip to content
Snippets Groups Projects
Commit f078cb6b authored by Yorhel's avatar Yorhel
Browse files

Properly free() the pattern in exclude_clear()

Fixes a tiny, insignificant memory leak.
parent a7b7841a
Branches
Tags
No related merge requests found
...@@ -93,6 +93,7 @@ void exclude_clear() { ...@@ -93,6 +93,7 @@ void exclude_clear() {
for(n=excludes; n!=NULL; n=l) { for(n=excludes; n!=NULL; n=l) {
l = n->next; l = n->next;
free(n->pattern);
free(n); free(n);
} }
excludes = NULL; excludes = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment