chiark / gitweb /
Tracks: fix a small memory leak.
authorSimon Tatham <anakin@pobox.com>
Wed, 26 Feb 2020 06:19:26 +0000 (06:19 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 26 Feb 2020 06:32:35 +0000 (06:32 +0000)
Spotted by Leak Sanitiser while I was testing the standalone solver.

tracks.c

index c68cca9e3ca2ff6ca78692ea0e7ce6431a40570e..4a7e9b0a00abb87ef50d6fb4f672f71f49cfc674 100644 (file)
--- a/tracks.c
+++ b/tracks.c
@@ -706,6 +706,7 @@ strip_clues:
 
 done:
     sfree(positions);
+    sfree(nedges_previous_solve);
     free_game(scratch);
     return ret;
 }