chiark
/
gitweb
/
~ianmdlvl
/
matchsticks-search.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
do not leak prob when retrying
[matchsticks-search.git]
/
main.c
diff --git
a/main.c
b/main.c
index 15b534bd3bc3c9eb0447b059e5bf013de4969b44..b9724608c9a175849e6b06dc7df0caa344318100 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-52,6
+52,11
@@
static void optimise(int doprint) {
if (!doprint) { doprint = 1; goto retry_with_print; } \
})
retry_with_print:
+ if (prob) {
+ glp_delete_prob(prob);
+ prob = 0;
+ }
+
#define PRINTF if (!doprint) ; else printf /* bodgy */
PRINTF("%2d ", maxhamweight);