aboutsummaryrefslogtreecommitdiff
path: root/src/param.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/param.cpp')
-rw-r--r--src/param.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/param.cpp b/src/param.cpp
index c5f60c6..f96e9c3 100644
--- a/src/param.cpp
+++ b/src/param.cpp
@@ -107,7 +107,8 @@ PARAM::PARAM(void)
time_UtZ(0.0), time_opt(0.0), time_Omega(0.0) {}
PARAM::~PARAM() {
- gsl_rng_free(gsl_r);
+ if (gsl_r)
+ gsl_rng_free(gsl_r);
}
// Read files: obtain ns_total, ng_total, ns_test, ni_test.