From a8b7916829a55fff021e39fca8760a57e11b48b1 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 21 Mar 2015 12:23:12 +1100 Subject: [PATCH] Fix memory leak --- src/stratifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stratifier.c b/src/stratifier.c index 35eba5bb..0562741a 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -4158,6 +4158,7 @@ static void *statsupdate(void *arg) char_t = ckalloc(sizeof(char_entry_t)); s = json_dumps(val, JSON_NO_UTF8 | JSON_PRESERVE_ORDER); ASPRINTF(&char_t->buf, "User %s:%s", user->username, s); + dealloc(s); DL_APPEND(char_list, char_t); } json_decref(val);