diff options
Diffstat (limited to 'src/signalProcessing/conv')
-rw-r--r-- | src/signalProcessing/conv/dconva.c | 16 | ||||
-rw-r--r-- | src/signalProcessing/conv/zconva.c | 17 |
2 files changed, 33 insertions, 0 deletions
diff --git a/src/signalProcessing/conv/dconva.c b/src/signalProcessing/conv/dconva.c index 95d02de6..dc4294d0 100644 --- a/src/signalProcessing/conv/dconva.c +++ b/src/signalProcessing/conv/dconva.c @@ -1,3 +1,16 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Arnaud TORSET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + * + */ + #include "conv.h" void dconva(double *in1, int size1, double *in2,int size2, double *out){ @@ -18,6 +31,9 @@ void dconva(double *in1, int size1, double *in2,int size2, double *out){ zreala(result,size1+size2-1,out); free(result); + free(in2Cpx); + free(in1Cpx); + } diff --git a/src/signalProcessing/conv/zconva.c b/src/signalProcessing/conv/zconva.c index 688023a7..83c791ec 100644 --- a/src/signalProcessing/conv/zconva.c +++ b/src/signalProcessing/conv/zconva.c @@ -1,3 +1,16 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Arnaud TORSET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + * + */ + #include "conv.h" void zconva(doubleComplex *in1, int size1, doubleComplex *in2,int size2, doubleComplex *out){ @@ -31,4 +44,8 @@ void zconva(doubleComplex *in1, int size1, doubleComplex *in2,int size2, doubleC for (i=0;i<size1+size2-1;i++){ out[i]=result[i]; } + + free(result); + free(in2b); + free(in1b); } |