From 38ec090964aa96fed539f47cc19de011daff7776 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Thu, 30 Jan 2025 17:07:24 +0700 Subject: [PATCH] fix memory leak --- src/m_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_json.c b/src/m_json.c index f5bf1ede..d4953c94 100644 --- a/src/m_json.c +++ b/src/m_json.c @@ -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})); }