cmath4.c, cx_deriv(), remove a memory leak

This commit is contained in:
h_vogt 2016-06-15 21:05:40 +02:00 committed by rlar
parent 51fa006c63
commit fca8ab3146
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}