From 59bc62153d058c65f806255ae3816c0c772c5182 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 27 Dec 2016 15:12:44 +1100 Subject: [PATCH] Free log buffer as well. --- src/ckpool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ckpool.c b/src/ckpool.c index e13b6973..a0fbfd09 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -124,6 +124,7 @@ void logmsg(int loglevel, const char *fmt, ...) { if (logfd > 0) ckmsgq_add(global_ckp->logger, strdup(log)); free(buf); + free(log); } }