Explorar o código

cJSON_Free forgot to commit

Philippe G %!s(int64=4) %!d(string=hai) anos
pai
achega
19a53fafd3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/squeezelite-ota/squeezelite-ota.c

+ 1 - 1
components/squeezelite-ota/squeezelite-ota.c

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