diff options
author | Robin Gareus <robin@gareus.org> | 2020-05-22 01:29:25 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-05-22 01:29:25 +0200 |
commit | 44bca6cc8f18d8965cbce78d6ff320b164cbcf50 (patch) | |
tree | 829935f99f5b5bb07b5091d723415fc6aa41ce36 /libs | |
parent | ab4b268e5f122072936450fba7b1c146da42c189 (diff) |
Fix memory leak when reading MIDI files
Diffstat (limited to 'libs')
-rw-r--r-- | libs/evoral/SMF.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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(); } |