hat-test: fix memory leaks.

I ran this again today with Leak Sanitiser on, which complained.
This commit is contained in:
Simon Tatham
2023-04-29 13:40:51 +01:00
parent bbbbc8b22b
commit b293605ce3

View File

@ -307,6 +307,8 @@ static inline FourColourMap fourcolourmap_update(
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 @@ int main(int argc, char **argv)
trailer(dctx);
hatctx_cleanup(ctx);
random_free(rs);
return 0;
}