commit 134ee92f43029ac3c5dad630e48d6eb160e6a52e
parent c5a841f507b18045adabdaac16211fa191868a38
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sat, 27 Oct 2018 19:13:12 +0530
Fix #122
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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);