diff options
| author | Simon Tatham <anakin@pobox.com> | 2023-04-29 13:40:51 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2023-04-29 13:40:51 +0100 |
| commit | b293605ce34bd28dea013c25ed801e123b47e98c (patch) | |
| tree | b8cbe7513d4882c524a6371248fa13ffbe9f36aa | |
| parent | bbbbc8b22bae0aa15b48273f763b0e215df0c7af (diff) | |
| download | puzzles-b293605ce34bd28dea013c25ed801e123b47e98c.zip puzzles-b293605ce34bd28dea013c25ed801e123b47e98c.tar.gz puzzles-b293605ce34bd28dea013c25ed801e123b47e98c.tar.bz2 puzzles-b293605ce34bd28dea013c25ed801e123b47e98c.tar.xz | |
hat-test: fix memory leaks.
I ran this again today with Leak Sanitiser on, which complained.
| -rw-r--r-- | auxiliary/hat-test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/auxiliary/hat-test.c b/auxiliary/hat-test.c index 254d82c..0492129 100644 --- a/auxiliary/hat-test.c +++ b/auxiliary/hat-test.c @@ -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; } |