Skip to content
Snippets Groups Projects
Commit 23ecbc92 authored by Maciej Pawel Szymanski's avatar Maciej Pawel Szymanski Committed by Tadej Novak
Browse files

Fix memory leak in SCTRawContByteStreamCnv

Fix memory leak in SCTRawContByteStreamCnv
parent 9717a3ea
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,9 @@ StatusCode SCTRawContByteStreamCnv::createRepConst(DataObject* pDataObject, IOpa
// Set up the IOpaqueAddress for Storegate
std::string dataObjectName{pDataObject->registry()->name()};
if ( pOpaqueAddress != nullptr ) pOpaqueAddress->release();
pOpaqueAddress = new ByteStreamAddress(classID(), dataObjectName, "");
pOpaqueAddress->addRef();
// Use the tool to do the conversion
ATH_CHECK(m_rawContByteStreamTool->convert(sctRDOCont) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment