Fix memory leak in the long polling thread
This commit is contained in:
parent
6c504ba77e
commit
96c3676d88
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue