~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bug in error reporting for --save caused by freeing 'realname'
[sgt/puzzles]
/
gtk.c
diff --git
a/gtk.c
b/gtk.c
index
e6a0366
..
d45a76d
100644
(file)
--- a/
gtk.c
+++ b/
gtk.c
@@
-2704,7
+2704,6
@@
int main(int argc, char **argv)
strerror(errno));
return 1;
}
- sfree(realname);
ctx.error = 0;
midend_serialise(me, savefile_write, &ctx);
if (ctx.error) {
@@
-2717,6
+2716,7
@@
int main(int argc, char **argv)
strerror(errno));
return 1;
}
+ sfree(realname);
}
if (!doc && !savefile) {
id = midend_get_game_id(me);