Skip to content

Commit 43a366e

Browse files
committed
Fix a minor memory leak.
1 parent 7d21992 commit 43a366e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PhysicsTools/NanoAOD/plugins/NanoAODOutputModule.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void NanoAODOutputModule::writeRun(edm::RunForOutput const& iRun) {
273273
throw cms::Exception("LogicError", "Inconsistent nanoMetadata " + p.first + " (" + hstring->str() + ")");
274274
} else {
275275
auto ostr = std::make_unique<TObjString>(hstring->str().c_str());
276-
m_file->WriteTObject(ostr.release(), p.first.c_str());
276+
m_file->WriteTObject(ostr.get(), p.first.c_str());
277277
}
278278
}
279279

0 commit comments

Comments
 (0)