mirror of
https://github.com/jarun/nnn.git
synced 2025-04-05 21:16:36 +00:00
Fix #122
This commit is contained in:
parent
c5a841f507
commit
134ee92f43
1 changed files with 1 additions and 2 deletions
3
nnn.c
3
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue