Skip to content

Commit 4d05a0b

Browse files
committed
fix meomry free
1 parent 783697f commit 4d05a0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/Gamma.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ void windowing(int var, int order, int rep, int nconf, int flow, double* a, doub
207207
free(tmp);
208208
fprintf(file_tau, "%d \t %d %g\n", flow, 0, 0.5);
209209

210-
double tauint = -0.5;// so in the first iteration it goes to 0.5
211-
for (i = 0;i < nconf;i++) {
210+
double tauint = 0.5;
211+
for (i = 1;i < nconf;i++) {
212212
tmp = Gamma(i, var, order, rep, nconf, a, bba);
213213
gammaFbb[i] = Gammaf(var, order, tmp, fbba);
214214
fprintf(file_gamma, "%d\t", i);

0 commit comments

Comments
 (0)