Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
Immanuel
/
nnn
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
Only free() after xstrdup()
master
sin
10 anni fa
parent
6d04c5329e
commit
35f3b250bb
1 ha cambiato i file
con
1 aggiunte
e
2 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
noice.c
+ 1
- 2
noice.c
Vedi File
@@ -128,12 +128,11 @@ xdirname(const char *path)
* original string if we lose track of it. */
tmp = xstrdup(path);
p = dirname(tmp);
free(tmp);
if (p == NULL)
printerr(1, "dirname");
/* Make sure this is a malloc(3)-ed string */
p = xstrdup(p);
free(tmp);
return p;
}
Write
Preview
|
|
|
|
|
|
x
0
0
0:0
Loading…
Annulla
Salva