Fixed a memory leak in cJSON_Print

This commit is contained in:
nopnop2002
2021-07-05 11:49:49 +09:00
parent f65fab7afa
commit dccf528c9a
+1
View File
@@ -181,6 +181,7 @@ void http_client_task(void *pvParameters)
//char *post_data = "{\"canid\":257}";
//http_rest_with_url(frameBuf.topic, post_data);
http_rest_with_url(frameBuf.topic, json_string);
cJSON_free(json_string);
} // end while
// Never reach here