[io] always call del_ when new_ fails
authorPaul Brossier <piem@piem.org>
Sun, 16 Dec 2018 18:17:44 +0000 (19:17 +0100)
committerPaul Brossier <piem@piem.org>
Sun, 16 Dec 2018 18:17:44 +0000 (19:17 +0100)
src/io/source_apple_audio.c

index db7ff54..6b26b43 100644 (file)
@@ -85,7 +85,7 @@ aubio_source_apple_audio_t * new_aubio_source_apple_audio(const char_t * path, u
   return s;
 
 beach:
-  AUBIO_FREE(s);
+  del_aubio_source_apple_audio(s);
   return NULL;
 }