From 44bca6cc8f18d8965cbce78d6ff320b164cbcf50 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 22 May 2020 01:29:25 +0200 Subject: Fix memory leak when reading MIDI files --- libs/evoral/SMF.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/evoral/SMF.cc b/libs/evoral/SMF.cc index aebc41e20a..7025c9b3e5 100644 --- a/libs/evoral/SMF.cc +++ b/libs/evoral/SMF.cc @@ -173,6 +173,7 @@ SMF::open(const std::string& path, int track) } _type0channels.insert(chan); } + free (buf); _type0 = true; seek_to_start(); } -- cgit v1.2.3