From 5d02bdfb9a1968c9472af26dbb2a776238e26986 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Sun, 28 May 2017 08:39:17 +1000 Subject: [PATCH] Fix leak in parse_worker_diffs. --- src/stratifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stratifier.c b/src/stratifier.c index 4b19571d..70afe1d3 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -5386,6 +5386,7 @@ static void parse_worker_diffs(ckpool_t *ckp, json_t *worker_array) json_get_string(&workername, worker_entry, "workername"); json_get_int(&mindiff, worker_entry, "difficultydefault"); set_worker_mindiff(ckp, workername, mindiff); + dealloc(workername); } }