Only free state once in kiss-fft failed init path
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Wed, 19 Oct 2011 11:41:27 +0000 (07:41 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Wed, 19 Oct 2011 11:41:27 +0000 (07:41 -0400)
celt/kiss_fft.c

index b14f66b..f6b9094 100644 (file)
@@ -576,7 +576,6 @@ kiss_fft_state *opus_fft_alloc_twiddles(int nfft,void * mem,size_t * lenmem,  co
         }
         if (!kf_factor(nfft,st->factors))
         {
-           opus_fft_free(st);
            goto fail;
         }