aboutsummaryrefslogtreecommitdiff
path: root/src/param.h
diff options
context:
space:
mode:
authorPjotr Prins2021-01-11 08:56:22 +0000
committerPjotr Prins2021-01-11 08:56:22 +0000
commit2e1f48ba900e97e906d18d8c5568b31dfbde3412 (patch)
treefbb6882fd99b5e418c2adfe8ac5a2c1a848949b9 /src/param.h
parent47221d6e9891bf9b20ce6e1e909856ccb0ae575f (diff)
downloadpangemma-2e1f48ba900e97e906d18d8c5568b31dfbde3412.tar.gz
Only free randomizer when initialized
Fixes: #239
Diffstat (limited to 'src/param.h')
-rw-r--r--src/param.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/param.h b/src/param.h
index eb2cef7..e747182 100644
--- a/src/param.h
+++ b/src/param.h
@@ -213,7 +213,7 @@ public:
size_t n_mh; // # MH steps in each iter.
double geo_mean; // Mean of geometric dist.
long int randseed; // holds -seed parameter
- gsl_rng *gsl_r; // Track the randomizer
+ gsl_rng *gsl_r = NULL; // Track the randomizer
double trace_G;
HYPBSLMM cHyp_initial;