diff --git a/main/http_post.c b/main/http_post.c index a011e30..9a7f0b8 100644 --- a/main/http_post.c +++ b/main/http_post.c @@ -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