diff --git a/src/storage/StorageState.cxx b/src/storage/StorageState.cxx index 2e5530738..7c7d49295 100644 --- a/src/storage/StorageState.cxx +++ b/src/storage/StorageState.cxx @@ -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; } }