From fca8ab3146d3873003cb87866202ac89cb0b865a Mon Sep 17 00:00:00 2001 From: h_vogt Date: Wed, 15 Jun 2016 21:05:40 +0200 Subject: [PATCH] cmath4.c, cx_deriv(), remove a memory leak --- src/maths/cmaths/cmath4.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }