aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-01-20 12:55:52 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:43 +0100
commit66243d21c5e626506c4bfe55d58075d937204681 (patch)
treebca022810ad248556089dc092ae59f22eb404d2b /tests
parent4a56d62ddc2a710b3dfecfdfa134755fd3d6c521 (diff)
Avoid freeing uninitialised stuff
Diffstat (limited to 'tests')
-rw-r--r--tests/pr_gradient_check.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/pr_gradient_check.c b/tests/pr_gradient_check.c
index 25d5a527..ac856131 100644
--- a/tests/pr_gradient_check.c
+++ b/tests/pr_gradient_check.c
@@ -138,7 +138,6 @@ static void calc_either_side(struct image *image, double incr_val,
compare = find_intersections(&im_moved, im_moved.indexed_cell);
scan_partialities(im_moved.reflections, compare,
valid, vals, 0);
- cell_free(cell);
reflist_free(compare);
im_moved = *image;
@@ -146,7 +145,6 @@ static void calc_either_side(struct image *image, double incr_val,
compare = find_intersections(&im_moved, im_moved.indexed_cell);
scan_partialities(im_moved.reflections, compare,
valid, vals, 2);
- cell_free(cell);
reflist_free(compare);
}