Sfoglia il codice sorgente

Only free history path if it is valid

master
lostd 11 anni fa
parent
commit
d84c3b1079
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. +4
    -2
      noice.c

+ 4
- 2
noice.c Vedi File

@@ -604,8 +604,10 @@ begin:

/* Find cur from history */
cur = dentfind(dents, n, path, hpath);
free(hpath);
hpath = NULL;
if (hpath != NULL) {
free(hpath);
hpath = NULL;
}

for (;;) {
int nlines;


Loading…
Annulla
Salva