Commit 90547787 authored by Peter Van Gemmeren's avatar Peter Van Gemmeren Committed by Adam Edward Barton
Browse files

Manually delete addresses that are not added to the store to avoid memory leak.

parent 106605f0
......@@ -457,6 +457,9 @@ StatusCode AthenaOutputStreamTool::streamObjects(const DataObjectVec& dataObject
} else {
m_dataHeader->insert(proxy, addr, m_processTag);
}
if (m_store->storeID() == StoreID::EVENT_STORE) {
delete addr; addr = nullptr;
}
}
} else {
ATH_MSG_ERROR("Could not fill Object Refs for DataObject (clid/key):" << (*doIter)->clID() << " " << (*doIter)->name());
......@@ -479,6 +482,7 @@ StatusCode AthenaOutputStreamTool::streamObjects(const DataObjectVec& dataObject
} else {
m_dataHeader->insert(proxy, addr, m_processTag);
}
delete addr; addr = nullptr;
}
} else {
ATH_MSG_ERROR("Could not fill Object Refs for DataHeader");
......
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