瀏覽代碼

Fix double free when starting in list mode

master
Arun Prakash Jana 5 年之前
父節點
當前提交
4c18f22587
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      src/nnn.c

+ 3
- 1
src/nnn.c 查看文件

@@ -4236,7 +4236,9 @@ static void rmlistpath()
DPRINTF_S(__FUNCTION__);
DPRINTF_S(listpath);
spawn("rm -rf", listpath, NULL, NULL, F_NOTRACE | F_MULTI);
free(listpath);
/* Do not free if program was started in list mode */
if (listpath != initpath)
free(listpath);
listpath = NULL;
}
}


Loading…
取消
儲存