mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-05-27 21:20:27 -04:00
wrong alloc size
This commit is contained in:
parent
cb5312efdc
commit
a296b09dbf
@ -421,7 +421,7 @@ void * kiss_fft2d_alloc(int nrows,int ncols,int inverse_fft)
|
||||
int size1,size2,sizetmp;
|
||||
size1 = allocsize(ncols);
|
||||
size2 = allocsize(nrows);
|
||||
sizetmp = ncols > nrows ? ncols : nrows;
|
||||
sizetmp = sizeof(kiss_fft_cpx)*(ncols > nrows ? ncols : nrows);
|
||||
|
||||
st = (kiss_fft2d_state *) malloc ( sizeof(kiss_fft2d_state) + size1 + size2 + sizetmp );
|
||||
if (!st)
|
||||
|
Loading…
Reference in New Issue
Block a user