fix one leak in simulator

This commit is contained in:
Tester23 2025-10-18 00:16:25 +02:00
parent d264e92500
commit 39c4590296

View File

@ -186,8 +186,10 @@ bool SIM_HasMQTTHistoryStringWithJSONPayload(const char *topic, bool bPrefixMode
bOk = false;
}
}
if (bOk)
if (bOk) {
cJSON_Delete(json);
return true;
}
}
}
cJSON_Delete(json);