Browse Source

api.c no decref if not json

nfactor-troky
Kano 11 years ago committed by Noel Maersk
parent
commit
65518d3712
  1. 2
      api.c

2
api.c

@ -3898,7 +3898,7 @@ void api(int api_thr_id) @@ -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);
}
}

Loading…
Cancel
Save