This is the mail archive of the
gsl-discuss@sourceware.org
mailing list for the GSL project.
Patch to fix complaints from valgrind about make check for linalg
- From: "Jonathan G. Underwood" <j dot underwood at open dot ac dot uk>
- To: gsl-discuss at sources dot redhat dot com
- Date: Tue, 30 Aug 2005 15:06:35 +0100
- Subject: Patch to fix complaints from valgrind about make check for linalg
This patch fixes the errors that valgrind gives for make check in linalg.
Index: test.c
===================================================================
RCS file: /cvs/gsl/gsl/linalg/test.c,v
retrieving revision 1.51
diff -u -r1.51 test.c
--- test.c 29 Jul 2005 21:26:35 -0000 1.51
+++ test.c 30 Aug 2005 14:04:24 -0000
@@ -721,8 +721,9 @@
gsl_vector_free(x);
gsl_vector_free(d);
gsl_matrix_free(qr);
+ gsl_matrix_free(q);
+ gsl_matrix_free(r);
gsl_vector_free(rhs);
-
return s;
}
@@ -1061,6 +1062,8 @@
gsl_vector_free(x);
gsl_vector_free(d);
gsl_matrix_free(qr);
+ gsl_matrix_free(q);
+ gsl_matrix_free(r);
gsl_vector_free(rhs);
gsl_permutation_free(perm);
@@ -2496,6 +2499,7 @@
gsl_matrix_free(a);
gsl_matrix_free(q);
gsl_matrix_free(dqt);
+ gsl_matrix_free (x);
return s;
}
@@ -3749,7 +3753,9 @@
gsl_test(test_TDN_solve(), "Tridiagonal nonsymmetric solve");
gsl_test(test_TDN_cyc_solve(), "Tridiagonal nonsymmetric cyclic solve");
+ gsl_matrix_free (m11);
gsl_matrix_free(m35);
+ gsl_matrix_free(m51);
gsl_matrix_free(m53);
gsl_matrix_free(m97);
gsl_matrix_free(s35);
@@ -3775,6 +3781,10 @@
gsl_matrix_free(A22);
gsl_matrix_free(A33);
gsl_matrix_free(A44);
+ gsl_matrix_free(A55);
+
+ gsl_matrix_free (inf5);
+ gsl_matrix_free (nan5);
exit (gsl_test_summary());
}