1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-14 00:38:02 +00:00

api.c no decref if not json

This commit is contained in:
Kano 2013-12-22 21:20:44 +11:00 committed by Noel Maersk
parent 350fe7f135
commit 65518d3712

2
api.c
View File

@ -3898,7 +3898,7 @@ void api(int api_thr_id)
message(io_data, MSG_INVCMD, 0, NULL, isjson);
send_result(io_data, c, isjson);
}
if (json_is_object(json_config))
if (isjson && json_is_object(json_config))
json_decref(json_config);
}
}