Sfoglia il codice sorgente

Fix double free when starting in list mode

master
Arun Prakash Jana 5 anni fa
parent
commit
4c18f22587
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: A75979F35C080412
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      src/nnn.c

+ 3
- 1
src/nnn.c Vedi File

@@ -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…
Annulla
Salva