aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dirax.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dirax.c b/src/dirax.c
index eb98a7a9..58e71ddc 100644
--- a/src/dirax.c
+++ b/src/dirax.c
@@ -119,7 +119,7 @@ static void dirax_parseline(const char *line, struct image *image,
ERROR("Couldn't understand cell line:\n");
ERROR("'%s'\n", line);
dirax->read_cell = 0;
- free(image->candidate_cells[image->ncells]);
+ cell_free(image->candidate_cells[image->ncells]);
return;
}
cell_set_cartesian_a(image->candidate_cells[image->ncells],
@@ -136,7 +136,7 @@ static void dirax_parseline(const char *line, struct image *image,
ERROR("Couldn't understand cell line:\n");
ERROR("'%s'\n", line);
dirax->read_cell = 0;
- free(image->candidate_cells[image->ncells]);
+ cell_free(image->candidate_cells[image->ncells]);
return;
}
cell_set_cartesian_b(image->candidate_cells[image->ncells],
@@ -153,7 +153,7 @@ static void dirax_parseline(const char *line, struct image *image,
ERROR("Couldn't understand cell line:\n");
ERROR("'%s'\n", line);
dirax->read_cell = 0;
- free(image->candidate_cells[image->ncells]);
+ cell_free(image->candidate_cells[image->ncells]);
return;
}
cell_set_cartesian_c(image->candidate_cells[image->ncells++],