Fix memory leak in the long polling thread

This commit is contained in:
pooler 2016-04-21 23:44:55 +02:00
parent 6c504ba77e
commit 96c3676d88

View file

@ -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