slstatus

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.beauhilton.com/slstatus.git
Log | Files | Refs | README | LICENSE

commit 086a70cde0a887a55d5554109e483c19bc6ad8c2
parent a8d5bde6a52ed5828ff217c8276673720f897c31
Author: Aaron Marcher <info@nulltime.net>
Date:   Mon, 15 Aug 2016 12:43:43 +0200

fixed memleak in datetime()

Diffstat:
Mslstatus.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/slstatus.c b/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"); }