Bugfix: Close memory leak in blktmpl_propose_jansson
This commit is contained in:
@@ -280,6 +280,7 @@ json_t *blktmpl_propose_jansson(blktemplate_t * const tmpl, const gbt_capabiliti
|
||||
goto err;
|
||||
if (!(ja = json_string(blkhex)))
|
||||
goto err;
|
||||
free(blkhex);
|
||||
if (json_object_set_new(jparams, "data", ja))
|
||||
goto err;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user