chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e9dc42
)
Tracks: fix a small memory leak.
author
Simon Tatham
<anakin@pobox.com>
Wed, 26 Feb 2020 06:19:26 +0000
(06:19 +0000)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/tracks.c
b/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;
}