ソースを参照

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;
}
}


読み込み中…
キャンセル
保存