fixed memleak in datetime()
Aaron Marcher info@nulltime.net
Mon, 15 Aug 2016 12:43:43 +0200
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
slstatus.c
→
slstatus.c
@@ -160,6 +160,7 @@ time(&tm);
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"); }