summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/wolff_tools.c2
-rw-r--r--src/wolff.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/wolff_tools.c b/lib/wolff_tools.c
index 74e5bd6..b3758cc 100644
--- a/lib/wolff_tools.c
+++ b/lib/wolff_tools.c
@@ -74,7 +74,7 @@ cluster_t *flip_cluster(const graph_t *g, const double *ps, bool *x,
for (uint32_t i = 0; i < nn; i++) {
bool is_ext;
- uint32_t e, v1, v2, vn, ind;
+ uint32_t e, v1, v2, vn;
int32_t *bond_counter;
double prob;
diff --git a/src/wolff.c b/src/wolff.c
index 81906fa..a8266ff 100644
--- a/src/wolff.c
+++ b/src/wolff.c
@@ -175,8 +175,6 @@ int main(int argc, char *argv[]) {
dC / h->nv, X / h->nv, dX / h->nv);
fclose(outfile);
- free(bond_probs);
-
if (output_state) {
FILE *state_file = fopen("state.dat", "a");
for (uint32_t i = 0; i < h->nv; i++) {