From 3feac6788d30af1365ce4d9a99b9f86496b40ddb Mon Sep 17 00:00:00 2001 From: Johannes Rauch Date: Thu, 7 Apr 2016 18:55:22 +0200 Subject: [PATCH] try to fix a memory leak occuring in basf2 --- GFRave/src/GFRaveVertexFactory.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GFRave/src/GFRaveVertexFactory.cc b/GFRave/src/GFRaveVertexFactory.cc index 60321295..a60428e7 100644 --- a/GFRave/src/GFRaveVertexFactory.cc +++ b/GFRave/src/GFRaveVertexFactory.cc @@ -77,9 +77,11 @@ GFRaveVertexFactory::findVertices ( std::vector < genfit::GFRaveVertex* > * GFv IdGFTrackStateMap_); } catch(Exception & e){ + clearMap(); std::cerr << e.what(); } + clearMap(); } @@ -98,9 +100,11 @@ GFRaveVertexFactory::findVertices ( std::vector < genfit::GFRaveVertex* > * GFv IdGFTrackStateMap_); } catch(Exception & e){ + clearMap(); std::cerr << e.what(); } + clearMap(); }