mirror of
https://github.com/jarun/nnn.git
synced 2025-03-19 04:49:49 +00:00
Only free history path if it is valid
This commit is contained in:
parent
8123975406
commit
d84c3b1079
1 changed files with 4 additions and 2 deletions
6
noice.c
6
noice.c
|
@ -604,8 +604,10 @@ begin:
|
|||
|
||||
/* Find cur from history */
|
||||
cur = dentfind(dents, n, path, hpath);
|
||||
free(hpath);
|
||||
hpath = NULL;
|
||||
if (hpath != NULL) {
|
||||
free(hpath);
|
||||
hpath = NULL;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
int nlines;
|
||||
|
|
Loading…
Add table
Reference in a new issue