diff --git a/src/maths/cmaths/cmath4.c b/src/maths/cmaths/cmath4.c index 757d916cf..e21a0f564 100644 --- a/src/maths/cmaths/cmath4.c +++ b/src/maths/cmaths/cmath4.c @@ -335,6 +335,8 @@ cx_deriv(void *data, short int type, int length, int *newlength, short int *newt tfree(r_coefs); tfree(i_coefs); tfree(scale); + tfree(spare); + tfree(scratch); return (void *) c_outdata; } @@ -419,7 +421,9 @@ cx_deriv(void *data, short int type, int length, int *newlength, short int *newt tfree(coefs); - tfree(scale); /* XXX */ + tfree(scale); + tfree(spare); + tfree(scratch); return (char *) outdata; }