solve memory leak in monitor & potentially http

This commit is contained in:
Philippe G
2020-08-14 18:51:59 -07:00
parent f64a37a633
commit ea3c6696e2
2 changed files with 3 additions and 4 deletions

View File

@@ -134,8 +134,7 @@ static void monitor_callback(TimerHandle_t xTimer) {
messaging_post_message(MESSAGING_INFO, MESSAGING_CLASS_STATS,top_a);
FREE_AND_NULL(top_a);
}
cJSON_free(top);
cJSON_Delete(top);
}
/****************************************************************************************