diff options
| author | 2018-10-27 19:13:12 +0530 | |
|---|---|---|
| committer | 2018-10-27 19:13:12 +0530 | |
| commit | 134ee92f43029ac3c5dad630e48d6eb160e6a52e (patch) | |
| tree | dec04cdd02c56f7f561e6a873b1f9cc88d624891 | |
| parent | c5a841f507b18045adabdaac16211fa191868a38 (diff) | |
| download | nnn-134ee92f43029ac3c5dad630e48d6eb160e6a52e.tar.gz | |
Fix #122
| -rw-r--r-- | nnn.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |