fix memory leak

This commit is contained in:
Roman Fomin 2025-01-30 17:07:24 +07:00
parent bb74e0584c
commit 38ec090964

View File

@ -71,7 +71,7 @@ json_t *JS_OpenOptions(int lumpnum, boolean comments)
}
json_t *json = yyjson_doc_get_root(json_doc);
if (!json)
if (json)
{
array_push(docs, ((doc_t){json_doc, lumpnum}));
}