diff options
| author | 2014-10-10 10:11:50 +0300 | |
|---|---|---|
| committer | 2014-10-10 10:11:50 +0300 | |
| commit | 50329302907c5435fead471b6a571b9d24215c1d (patch) | |
| tree | 0cbf715790fae8aa25a253ffb279f2dd9580be18 | |
| parent | 1cdfa84f699755d97873a90d856e4db5d7a6e0b8 (diff) | |
| download | nnn-50329302907c5435fead471b6a571b9d24215c1d.tar.gz | |
Also release filter memory
| -rw-r--r-- | noice.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -342,7 +342,7 @@ browse(const char *ipath, const char *ifilter) struct stat sb; begin: - /* Path should be a malloc(3)-ed string at all times */ + /* Path and filter should be malloc(3)-ed strings at all times */ n = 0; cur = 0; dents = NULL; @@ -446,6 +446,7 @@ nochange: switch (ret) { case SEL_QUIT: free(path); + free(filter); return; case SEL_BACK: /* Handle root case */ |