projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix memory leaks; bug 21056
[pspp-builds.git]
/
src
/
math
/
linreg
/
linreg.c
diff --git
a/src/math/linreg/linreg.c
b/src/math/linreg/linreg.c
index 6dfeb9db557f235711ad1839084ac9eb54d69103..4fc3b20a74d55bb5d284e5269764edf861312eed 100644
(file)
--- a/
src/math/linreg/linreg.c
+++ b/
src/math/linreg/linreg.c
@@
-189,6
+189,7
@@
pspp_linreg_cache_free (void *m)
{
pspp_coeff_free (c->coeff[i]);
}
{
pspp_coeff_free (c->coeff[i]);
}
+ free (c->coeff);
free (c);
}
return true;
free (c);
}
return true;
@@
-204,7
+205,7
@@
pspp_linreg (const gsl_vector * Y, const gsl_matrix * X,
const pspp_linreg_opts * opts, pspp_linreg_cache * cache)
{
int rc;
const pspp_linreg_opts * opts, pspp_linreg_cache * cache)
{
int rc;
- gsl_matrix *design;
+ gsl_matrix *design
= NULL
;
gsl_matrix_view xtx;
gsl_matrix_view xm;
gsl_matrix_view xmxtx;
gsl_matrix_view xtx;
gsl_matrix_view xm;
gsl_matrix_view xmxtx;