From 226d7ae5c13ed93f95aafc60caff8c6956cd16f2 Mon Sep 17 00:00:00 2001 From: liduo Date: Tue, 19 May 2026 19:21:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liduo --- src/config_parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config_parser.cpp b/src/config_parser.cpp index 57e1ed4..958f729 100644 --- a/src/config_parser.cpp +++ b/src/config_parser.cpp @@ -400,6 +400,7 @@ bool ConfigParser::ParseJsonArrayRef(cJSON *parent, const string &key, cJSON *no if (update) { long long idValue = 0; if (!ResourceUtil::StrToLongLong(value, idValue)) { + cJSON_Delete(array); return false; } cJSON_AddItemToArray(array, cJSON_CreateNumber(idValue));