diff options
| author | Simon Tatham <anakin@pobox.com> | 2011-12-28 18:07:46 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2011-12-28 18:07:46 +0000 |
| commit | b5cb02b61ac70ce92631c1a39d66e7668e870c8a (patch) | |
| tree | 62dbe4f672157370de82dbe067f9ee6ccb68d4f5 | |
| parent | 236f965093b25cef95b14c303ead298ac3edc86a (diff) | |
| download | puzzles-b5cb02b61ac70ce92631c1a39d66e7668e870c8a.zip puzzles-b5cb02b61ac70ce92631c1a39d66e7668e870c8a.tar.gz puzzles-b5cb02b61ac70ce92631c1a39d66e7668e870c8a.tar.bz2 puzzles-b5cb02b61ac70ce92631c1a39d66e7668e870c8a.tar.xz | |
Fix bug in error reporting for --save caused by freeing 'realname'
before the error messages wanted to use it.
[originally from svn r9374]
| -rw-r--r-- | gtk.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |