From 96c3676d884acf2e1d967f383c9fbf0e055d7792 Mon Sep 17 00:00:00 2001 From: pooler Date: Thu, 21 Apr 2016 23:44:55 +0200 Subject: [PATCH] Fix memory leak in the long polling thread --- cpu-miner.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu-miner.c b/cpu-miner.c index 7e865c4..3a0330d 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -1289,6 +1289,7 @@ start: soval = json_object_get(res, "submitold"); submit_old = soval ? json_is_true(soval) : false; pthread_mutex_lock(&g_work_lock); + work_free(&g_work); if (have_gbt) rc = gbt_work_decode(res, &g_work); else