mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Fix memory leak
This commit is contained in:
parent
5fb5e9f82f
commit
6d4166f0d6
1 changed files with 1 additions and 0 deletions
1
noice.c
1
noice.c
|
@ -485,6 +485,7 @@ dentfill(char *path, struct entry **dents,
|
|||
r = lstat(newpath, &sb);
|
||||
if (r == -1)
|
||||
printerr(1, "lstat");
|
||||
free(newpath);
|
||||
(*dents)[n].mode = sb.st_mode;
|
||||
(*dents)[n].t = sb.st_mtime;
|
||||
n++;
|
||||
|
|
Loading…
Add table
Reference in a new issue