Ver código fonte

fixed memleak in datetime()

master
Aaron Marcher 8 anos atrás
committed by Aaron Marcher (drkhsh)
pai
commit
086a70cde0
1 arquivos alterados com 1 adições e 0 exclusões
  1. +1
    -0
      slstatus.c

+ 1
- 0
slstatus.c Ver arquivo

@@ -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");
}


Carregando…
Cancelar
Salvar