From 0e214e23b71453ecae331f51917cf6b0411784fd Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 22 Oct 2014 17:28:27 +0100 Subject: [PATCH] Call dentfree() when we quit --- noice.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/noice.c b/noice.c index 89db4bd..7dab646 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;