瀏覽代碼

fixed memleak in datetime()

master
Aaron Marcher 8 年之前
committed by Aaron Marcher (drkhsh)
父節點
當前提交
086a70cde0
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      slstatus.c

+ 1
- 0
slstatus.c 查看文件

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


Loading…
取消
儲存