Commit a065c6e6 authored by Max Kellermann's avatar Max Kellermann

Main: use AtScopeExit() to call DeinitFS()

parent feb5ff9b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment