浏览代码

Also release filter memory

master
lostd 10 年前
父节点
当前提交
5032930290
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      noice.c

+ 2
- 1
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 */


||||||
x
 
000:0
正在加载...
取消
保存