From 9c3aa5409eb4f85c5a48f1cccc46925373688f28 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Mon, 4 Mar 2024 17:20:40 +0200 Subject: [PATCH] core: close the configuration file after loading all components All components are supposed to read the configuration file during initialization. After that, the file is not needed anymore. --- lib/wp/core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/wp/core.c b/lib/wp/core.c index f2fa1407..9de0e69b 100644 --- a/lib/wp/core.c +++ b/lib/wp/core.c @@ -503,6 +503,11 @@ on_components_loaded (WpCore * self, GAsyncResult *res, return; } + if (self->conf) { + wp_info_object (self, "done loading components, closing conf file..."); + wp_conf_close (self->conf); + } + wp_object_update_features (WP_OBJECT (self), WP_CORE_FEATURE_COMPONENTS, 0); }