From 66243d21c5e626506c4bfe55d58075d937204681 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 20 Jan 2012 12:55:52 -0800 Subject: Avoid freeing uninitialised stuff --- tests/pr_gradient_check.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests') 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); } -- cgit v1.2.3