From: Paul Brossier Date: Mon, 26 Nov 2018 15:28:57 +0000 (+0100) Subject: [dct] use del_aubio_dct on failure, add missing \n in error message X-Git-Tag: 0.4.9~156 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=7c85c153c6e39b86bdb5fbc9925839b94684bef5;p=aubio.git [dct] use del_aubio_dct on failure, add missing \n in error message --- diff --git a/src/spectral/dct.c b/src/spectral/dct.c index 4b3a4385..bd6ba6c0 100644 --- a/src/spectral/dct.c +++ b/src/spectral/dct.c @@ -155,8 +155,8 @@ plain: goto beach; } beach: - AUBIO_ERROR("dct: failed creating with size %d, should be > 0", size); - AUBIO_FREE (s); + AUBIO_ERROR("dct: failed creating with size %d, should be > 0\n", size); + del_aubio_dct(s); return NULL; }