mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Only free history path if it is valid
This commit is contained in:
parent
8123975406
commit
d84c3b1079
2
noice.c
2
noice.c
|
@ -604,8 +604,10 @@ begin:
|
||||||
|
|
||||||
/* Find cur from history */
|
/* Find cur from history */
|
||||||
cur = dentfind(dents, n, path, hpath);
|
cur = dentfind(dents, n, path, hpath);
|
||||||
|
if (hpath != NULL) {
|
||||||
free(hpath);
|
free(hpath);
|
||||||
hpath = NULL;
|
hpath = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
int nlines;
|
int nlines;
|
||||||
|
|
Loading…
Reference in a new issue