mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Also release filter memory
This commit is contained in:
parent
1cdfa84f69
commit
5032930290
3
noice.c
3
noice.c
|
@ -342,7 +342,7 @@ browse(const char *ipath, const char *ifilter)
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
|
|
||||||
begin:
|
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;
|
n = 0;
|
||||||
cur = 0;
|
cur = 0;
|
||||||
dents = NULL;
|
dents = NULL;
|
||||||
|
@ -446,6 +446,7 @@ nochange:
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case SEL_QUIT:
|
case SEL_QUIT:
|
||||||
free(path);
|
free(path);
|
||||||
|
free(filter);
|
||||||
return;
|
return;
|
||||||
case SEL_BACK:
|
case SEL_BACK:
|
||||||
/* Handle root case */
|
/* Handle root case */
|
||||||
|
|
Loading…
Reference in a new issue