Commit edb00063 authored by Cody Messick's avatar Cody Messick

itacac: Fixed incorrect function for freeing memory. The autocorrelation and

bankcorrelation members of itacacpad are now freed with the appropriate gsl
free functions instead of the standard free function.
parent c7c58c91
Pipeline #150443 failed with stages
in 45 minutes and 30 seconds
......@@ -1364,26 +1364,41 @@ static void gstlal_itacac_pad_dispose(GObject *object)
itacacpad->data = NULL;
}
if(itacacpad->autocorrelation_matrix) {
gsl_matrix_complex_free(itacacpad->autocorrelation_matrix);
itacacpad->autocorrelation_matrix = NULL;
}
if(itacacpad->autocorrelation_mask) {
gsl_matrix_int_free(itacacpad->autocorrelation_mask);
itacacpad->autocorrelation_mask = NULL;
}
if(itacacpad->autocorrelation_norm) {
gsl_vector_free(itacacpad->autocorrelation_norm);
itacacpad->autocorrelation_norm = NULL;
}
if(itacacpad->bankcorrelation_matrix) {
gsl_matrix_complex_free(itacacpad->bankcorrelation_matrix);
itacacpad->bankcorrelation_matrix = NULL;
}
if(itacacpad->bankcorrelation_norm) {
gsl_vector_free(itacacpad->bankcorrelation_norm);
itacacpad->bankcorrelation_norm = NULL;
}
free(itacacpad->snr_mat);
free(itacacpad->tmp_snr_mat);
free(itacacpad->autocorrelation_matrix);
free(itacacpad->autocorrelation_mask);
free(itacacpad->autocorrelation_norm);
free(itacacpad->chi2);
free(itacacpad->tmp_chi2);
free(itacacpad->bankcorrelation_matrix);
free(itacacpad->bankcorrelation_norm);
free(itacacpad->bankchi2);
free(itacacpad->tmp_bankchi2);
itacacpad->snr_mat = NULL;
itacacpad->tmp_snr_mat = NULL;
itacacpad->autocorrelation_matrix = NULL;
itacacpad->autocorrelation_mask = NULL;
itacacpad->autocorrelation_norm = NULL;
itacacpad->chi2 = NULL;
itacacpad->tmp_chi2 = NULL;
itacacpad->bankcorrelation_matrix = NULL;
itacacpad->bankcorrelation_norm = NULL;
itacacpad->bankchi2 = NULL;
itacacpad->tmp_bankchi2 = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment