Commit a20b3268 authored by Max Kellermann's avatar Max Kellermann

storage/State: fix memory leak after database mount failure

Caused by commit 64d141f7 This wasn't a serious memory leak, because after a mount failure, MPD would abort anyway, which is subject to the next commit.
parent 4db1b1b2
......@@ -104,6 +104,7 @@ storage_state_restore(const char *line, TextFile &file, Instance &instance)
try {
((SimpleDatabase *)db)->Mount(uri.c_str(), url.c_str());
} catch (...) {
delete storage;
throw;
}
}
......
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