mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2025-10-29 11:33:20 +00:00
fix one leak in simulator
This commit is contained in:
parent
d264e92500
commit
39c4590296
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user