src/pitch/pitchschmitt.c: avoid memory leak (thanks to Olivier Robert)
authorPaul Brossier <piem@piem.org>
Mon, 7 Feb 2011 11:54:42 +0000 (12:54 +0100)
committerPaul Brossier <piem@piem.org>
Mon, 7 Feb 2011 11:54:42 +0000 (12:54 +0100)
src/pitch/pitchschmitt.c

index f061cc8f41da0150f02d2e373a4f3e30a60c63ff..6f0176197657eb9078d14d4902a3b9807fcc8ef0 100644 (file)
@@ -114,5 +114,6 @@ void
 del_aubio_pitchschmitt (aubio_pitchschmitt_t * p)
 {
   AUBIO_FREE (p->schmittBuffer);
+  AUBIO_FREE (p->buf);
   AUBIO_FREE (p);
 }