chiark
/
gitweb
/
~ianmdlvl
/
matchsticks-search.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3164b71
)
do not leak prob when retrying
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 7 Mar 2014 18:43:49 +0000
(18:43 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 7 Mar 2014 18:43:49 +0000
(18:43 +0000)
main.c
patch
|
blob
|
history
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);