From ee5d3da929db5f1d00f4fdd685b12063d533d0f8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 20 Jan 2022 13:39:05 -0700 Subject: [PATCH] fix inconsequential (unlikely) memory leak from clang --- libs/ardour/session_command.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/session_command.cc b/libs/ardour/session_command.cc index f8a5a62956..5e545e3086 100644 --- a/libs/ardour/session_command.cc +++ b/libs/ardour/session_command.cc @@ -147,6 +147,10 @@ Session::memento_command_factory(XMLNode *n) /* we failed */ info << string_compose (_("Could not reconstitute MementoCommand from XMLNode. object type = %1 id = %2"), type_name, id.to_s()) << endmsg; + delete after; + delete before; + delete child; + return 0 ; }