Skip to content
Snippets Groups Projects
Commit a1dba213 authored by scott snyder's avatar scott snyder
Browse files

ByteStreamCnvSvc: Fix memory leak.

Leaked AttributeListSpecification.
parent b9778595
No related branches found
No related tags found
No related merge requests found
...@@ -736,9 +736,8 @@ StatusCode EventSelectorByteStream::recordAttributeListImpl(lock_t& lock) const ...@@ -736,9 +736,8 @@ StatusCode EventSelectorByteStream::recordAttributeListImpl(lock_t& lock) const
} }
} }
// build spec and the new attr list // build the new attr list
coral::AttributeListSpecification* spec = new coral::AttributeListSpecification(); // the newly created attribute list owns the spec auto attrList = std::make_unique<AthenaAttributeList>();
auto attrList = std::make_unique<AthenaAttributeList>(*spec);
// fill the attr list // fill the attr list
ATH_CHECK(fillAttributeListImpl(attrList.get(), "", false, lock)); ATH_CHECK(fillAttributeListImpl(attrList.get(), "", false, lock));
......
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