mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Only free history path if it is valid
This commit is contained in:
parent
8123975406
commit
d84c3b1079
6
noice.c
6
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);
|
||||||
free(hpath);
|
if (hpath != NULL) {
|
||||||
hpath = NULL;
|
free(hpath);
|
||||||
|
hpath = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
int nlines;
|
int nlines;
|
||||||
|
|
Loading…
Reference in a new issue