pull/2558/merge
Roger A. Light 3 years ago
parent 9d3f19b3bb
commit a872c0466f

@ -97,6 +97,7 @@ static char *properties_to_json(const mosquitto_property *properties)
sprintf(&hexval[i*2], "%02X", ((uint8_t *)binval)[i]);
}
hexval[2*len] = '\0';
free(binval);
if(cJSON_AddStringToObject(obj, "value", hexval) == NULL){
free(hexval);

Loading…
Cancel
Save