Skip to content

Commit e58c820

Browse files
ChristianTackeGSIdennisklein
authored andcommitted
workaround: Avoid geoloader memory issues
Not leaking fGeoLoader on FairRunSim seems to cause some memory issues (probbaly a double free/delete). Until we find it, let's leak the Geoloader, as before. See: #1514 See: ede7137
1 parent e36e5e2 commit e58c820

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

fairroot/base/steer/FairRunSim.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ FairRunSim::~FairRunSim()
111111
// Do not point to a destructed object!
112112
fginstance = nullptr;
113113
}
114+
115+
/// \bug Leaks GeoLoader and related resources, prevents memory issues (probably a double free)
116+
/// See: https://github.com/FairRootGroup/FairRoot/issues/1514
117+
static_cast<void>(fGeoLoader.release());
114118
}
115119

116120
FairRunSim* FairRunSim::Instance()

0 commit comments

Comments
 (0)