cJSON_Free forgot to commit

This commit is contained in:
Philippe G
2020-08-14 23:53:17 -07:00
parent ea3c6696e2
commit 19a53fafd3

View File

@@ -206,7 +206,7 @@ void sendMessaging(messaging_types type,const char * fmt, ...){
char * json_msg = cJSON_PrintUnformatted(msg); char * json_msg = cJSON_PrintUnformatted(msg);
messaging_post_message(type, MESSAGING_CLASS_OTA, json_msg); messaging_post_message(type, MESSAGING_CLASS_OTA, json_msg);
free(json_msg); free(json_msg);
cJSON_free(msg); cJSON_Delete(msg);
_printMemStats(); _printMemStats();
} }