aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/noice.c b/noice.c
index 71e4897..f41c90a 100644
--- a/noice.c
+++ b/noice.c
@@ -676,6 +676,12 @@ nochange:
free(tmp);
free(filter);
filter = xstrdup(ifilter); /* Reset filter */
+ /* Forget history */
+ while (!SLIST_EMPTY(&histhead)) {
+ hist = SLIST_FIRST(&histhead);
+ SLIST_REMOVE_HEAD(&histhead, entry);
+ free(hist);
+ }
DPRINTF_S(path);
cur = 0;
goto out;