Added guard for some object inits to prevent memory leak by misuse (#662)

Co-authored-by: Nik Schewtschuk <nikonlinee@gmail.com>
This commit is contained in:
NikSchew
2024-06-02 13:42:47 +02:00
committed by GitHub
parent 4a7b7763c2
commit 7276bf471d
4 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -1006,5 +1006,7 @@ bool Binary_Value_Delete(uint32_t object_instance)
*/
void Binary_Value_Init(void)
{
Object_List = Keylist_Create();
if (!Object_List) {
Object_List = Keylist_Create();
}
}