diff options
author | Thomas White <taw@physics.org> | 2011-05-17 14:33:04 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:26 +0100 |
commit | b28d2220efd74daa4052733feaf5074633ee5213 (patch) | |
tree | 9fd3738fa2561b444ab5b93ddce13a1e4e133724 /src | |
parent | a25bd0da6fc3b5e5a5c121690bd35631ad1e3b2b (diff) |
Use cell_free() instead of free() if DirAx's result is invalid
Diffstat (limited to 'src')
-rw-r--r-- | src/dirax.c | 6 |
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++], |