From: Arun Prakash Jana Date: Sat, 27 Oct 2018 13:43:12 +0000 (+0530) Subject: Fix #122 X-Git-Tag: v2.1~78 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=134ee92f43029ac3c5dad630e48d6eb160e6a52e;p=nnn.git Fix #122 --- 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);