mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Properly free() the pattern in exclude_clear()
Fixes a tiny, insignificant memory leak.
This commit is contained in:
parent
a7b7841ac0
commit
f078cb6bc7
1 changed files with 1 additions and 0 deletions
|
|
@ -93,6 +93,7 @@ void exclude_clear() {
|
|||
|
||||
for(n=excludes; n!=NULL; n=l) {
|
||||
l = n->next;
|
||||
free(n->pattern);
|
||||
free(n);
|
||||
}
|
||||
excludes = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue