mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-14 17:58:40 -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) {
|
for(n=excludes; n!=NULL; n=l) {
|
||||||
l = n->next;
|
l = n->next;
|
||||||
|
free(n->pattern);
|
||||||
free(n);
|
free(n);
|
||||||
}
|
}
|
||||||
excludes = NULL;
|
excludes = NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue