Soft'N'Design Software
/
projects
/
checkers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
875a371
)
fix a memory leak
author
Laurent Mazet
<mazet@softndesign.org>
Thu, 18 Jul 2024 20:22:28 +0000
(22:22 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Thu, 18 Jul 2024 20:22:28 +0000
(22:22 +0200)
checkers.c
patch
|
blob
|
blame
|
history
diff --git
a/checkers.c
b/checkers.c
index c5032b39bc0d7d24083521415aa06789722f2f7f..ed0812cd8547ae08ec49e68103b263ee80d96767 100644
(file)
--- a/
checkers.c
+++ b/
checkers.c
@@
-412,6
+412,7
@@
int main (int argc, char *argv[])
case '\b':
case 'x':
if (cache->board) {
+ freeboard (board);
board = popcache (cache, &xcursor, &ycursor, &queen);
if (mode == 2) {
mode = 1;