From 134ee92f43029ac3c5dad630e48d6eb160e6a52e Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 27 Oct 2018 19:13:12 +0530 Subject: [PATCH] Fix #122 --- nnn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nnn.c b/nnn.c index 125998b2..0aa375a6 100644 --- a/nnn.c +++ b/nnn.c @@ -2160,8 +2160,7 @@ static int dentfill(char *path, struct entry **dents, total_dents += ENTRY_INCR; *dents = xrealloc(*dents, total_dents * sizeof(**dents)); if (*dents == NULL) { - if (pnamebuf) - free(pnamebuf); + free(pnamebuf); errexit(); } DPRINTF_P(*dents);