diff options
| author | 2014-10-22 22:32:45 +0300 | |
|---|---|---|
| committer | 2014-10-22 22:32:45 +0300 | |
| commit | d84c3b1079091298e7f92cf9fcf21416f3fe2c6d (patch) | |
| tree | 65d15c3d6f41240232a3eef0363f7daddfc47c59 | |
| parent | 81239754064e6b5bfeeeb90d0043a3e48f13f65c (diff) | |
| download | nnn-d84c3b1079091298e7f92cf9fcf21416f3fe2c6d.tar.gz | |
Only free history path if it is valid
| -rw-r--r-- | noice.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |