diff --git a/noice.c b/noice.c index 89db4bd0..7dab6468 100644 --- a/noice.c +++ b/noice.c @@ -608,8 +608,8 @@ nochange: case SEL_QUIT: free(path); free(filter); - /* Forget history */ forgethist(); + dentfree(dents, n); return; case SEL_BACK: /* There is no going back */ @@ -714,7 +714,6 @@ nochange: free(tmp); free(filter); filter = xstrdup(ifilter); /* Reset filter */ - /* Forget history */ forgethist(); DPRINTF_S(path); cur = 0;