diff --git a/NetDb.cpp b/NetDb.cpp index d0a75c3a..367477a5 100644 --- a/NetDb.cpp +++ b/NetDb.cpp @@ -333,7 +333,7 @@ namespace data void NetDb::VisitStoredRouterInfos(RouterInfoVisitor v) { m_Storage.Iterate([v] (const std::string & filename) { - const i2p::data::RouterInfo ri(filename); + auto ri = std::make_shared(filename); v(ri); }); }