mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-14 08:48:01 +00:00
api.c no decref if not json
This commit is contained in:
parent
350fe7f135
commit
65518d3712
2
api.c
2
api.c
@ -3898,7 +3898,7 @@ void api(int api_thr_id)
|
|||||||
message(io_data, MSG_INVCMD, 0, NULL, isjson);
|
message(io_data, MSG_INVCMD, 0, NULL, isjson);
|
||||||
send_result(io_data, c, isjson);
|
send_result(io_data, c, isjson);
|
||||||
}
|
}
|
||||||
if (json_is_object(json_config))
|
if (isjson && json_is_object(json_config))
|
||||||
json_decref(json_config);
|
json_decref(json_config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user