ref: b293605ce34bd28dea013c25ed801e123b47e98c
parent: bbbbc8b22bae0aa15b48273f763b0e215df0c7af
author: Simon Tatham <anakin@pobox.com>
date: Sat Apr 29 09:40:51 EDT 2023
hat-test: fix memory leaks. I ran this again today with Leak Sanitiser on, which complained.
--- a/auxiliary/hat-test.c
+++ b/auxiliary/hat-test.c
@@ -307,6 +307,8 @@
f1 = fourcolours[prevc->c[3].type] + 4*m1;
f2 = fourcolours[prev2c->c[3].type] + 4*m2;
+ hat_coords_free(prev2c);
+
/*
* Start making our new output map, filling in all three normal
* colours to 255 = "don't know yet".
@@ -665,6 +667,7 @@
trailer(dctx);
hatctx_cleanup(ctx);
+ random_free(rs);
return 0;
}