From a1dba213ab9ac18d2bbbdf46abd1d0842c617c69 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Thu, 17 Dec 2020 04:03:06 +0100 Subject: [PATCH] ByteStreamCnvSvc: Fix memory leak. Leaked AttributeListSpecification. --- Event/ByteStreamCnvSvc/src/EventSelectorByteStream.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Event/ByteStreamCnvSvc/src/EventSelectorByteStream.cxx b/Event/ByteStreamCnvSvc/src/EventSelectorByteStream.cxx index bc20c5f82e7..a86f46bb8b8 100644 --- a/Event/ByteStreamCnvSvc/src/EventSelectorByteStream.cxx +++ b/Event/ByteStreamCnvSvc/src/EventSelectorByteStream.cxx @@ -736,9 +736,8 @@ StatusCode EventSelectorByteStream::recordAttributeListImpl(lock_t& lock) const } } - // build spec and the new attr list - coral::AttributeListSpecification* spec = new coral::AttributeListSpecification(); // the newly created attribute list owns the spec - auto attrList = std::make_unique<AthenaAttributeList>(*spec); + // build the new attr list + auto attrList = std::make_unique<AthenaAttributeList>(); // fill the attr list ATH_CHECK(fillAttributeListImpl(attrList.get(), "", false, lock)); -- GitLab