Преглед на файлове

Fix double free when starting in list mode

master
Arun Prakash Jana преди 5 години
родител
ревизия
4c18f22587
No known key found for this signature in database GPG Key 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…
Отказ
Запис