cmath4.c, cx_deriv(), remove a memory leak
This commit is contained in:
parent
51fa006c63
commit
fca8ab3146
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue