Explorar el Código

fixed memleak in datetime()

master
Aaron Marcher hace 8 años
committed by Aaron Marcher (drkhsh)
padre
commit
086a70cde0
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      slstatus.c

+ 1
- 0
slstatus.c Ver fichero

@@ -160,6 +160,7 @@ datetime(const char *timeformat)
setlocale(LC_TIME, "");
if(!strftime(buf, bufsize, timeformat, localtime(&tm))) {
setlocale(LC_TIME, "C");
free(buf);
fprintf(stderr, "Strftime failed.\n");
return smprintf("n/a");
}


Cargando…
Cancelar
Guardar