From a065c6e6b9655c2a87e42bd957d6a561d4a52f91 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 5 Feb 2019 23:02:50 +0100 Subject: [PATCH] Main: use AtScopeExit() to call DeinitFS() --- src/Main.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Main.cxx b/src/Main.cxx index 7ba25dad8..86fc9b09a 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -517,6 +517,7 @@ static int mpd_main_after_fork(const ConfigData &raw_config, const Config &config) { ConfigureFS(raw_config); + AtScopeExit() { DeinitFS(); }; glue_mapper_init(raw_config); @@ -655,8 +656,6 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config) playlist_list_global_finish(); - DeinitFS(); - return EXIT_SUCCESS; }