From 8a90d4a4143a28616c72108f056f62600adaa7a7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 9 May 2022 17:12:49 +0200 Subject: [PATCH] Fix another possible memory leak in BPM detection code --- libs/ardour/minibpm.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/ardour/minibpm.cc b/libs/ardour/minibpm.cc index 5cbe016b14..917d1bd33c 100644 --- a/libs/ardour/minibpm.cc +++ b/libs/ardour/minibpm.cc @@ -553,7 +553,10 @@ public: } if (candidateMap.empty()) { - return 0.0; + delete[] cf; + delete[] acf; + delete[] temp; + return 0.0; } std::multimap::const_iterator ci(candidateMap.end());