From 4fea6b3bff0872335ca11e6e569d9757c5d5fe15 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 22 Jan 2025 22:30:21 +0200 Subject: [PATCH] quota: Fix error handling if quota_warning settings couldn't be looked up The error code path for some reason deinitialized the whole quota root, which caused freed memory to be accessed later. --- src/plugins/quota/quota.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/quota/quota.c b/src/plugins/quota/quota.c index 5997f5f84b..81b10f50eb 100644 --- a/src/plugins/quota/quota.c +++ b/src/plugins/quota/quota.c @@ -174,7 +174,6 @@ static int quota_root_has_under_warnings(struct quota_root *root) "a_root_setting_parser_info, 0, &set, &error) < 0) { e_error(root->backend.event, "%s", error); - quota_root_deinit(root); return -1; } bool under = strcmp(set->quota_warning_threshold, -- 2.47.3