diff Chordino.cpp @ 161:ed3e7d4bcdaf

Fix substantial memory-leak
author Chris Cannam
date Tue, 27 Jan 2015 09:47:25 +0000
parents f01e5707b804
children 59b26f52550d
line wrap: on
line diff
--- a/Chordino.cpp	Fri Dec 05 11:08:50 2014 +0000
+++ b/Chordino.cpp	Tue Jan 27 09:47:25 2015 +0000
@@ -604,6 +604,8 @@
         // cerr << chordchange[iFrame] << endl;
         fsOut[m_outputHarmonicChange].push_back(chordchange_feature);
     }
+
+    free(delta);
     
     // for (int iFrame = 0; iFrame < nFrame; iFrame++) cerr << fsOut[m_outputHarmonicChange][iFrame].values[0] << endl;