~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nearly forgot: add the .CHM to the PuTTY installer. This involves
[sgt/putty]
/
windows
/
winplink.c
diff --git
a/windows/winplink.c
b/windows/winplink.c
index
fbeb538
..
0819934
100644
(file)
--- a/
windows/winplink.c
+++ b/
windows/winplink.c
@@
-29,6
+29,10
@@
void fatalbox(char *p, ...)
vfprintf(stderr, p, ap);
va_end(ap);
fputc('\n', stderr);
vfprintf(stderr, p, ap);
va_end(ap);
fputc('\n', stderr);
+ if (logctx) {
+ log_free(logctx);
+ logctx = NULL;
+ }
cleanup_exit(1);
}
void modalfatalbox(char *p, ...)
cleanup_exit(1);
}
void modalfatalbox(char *p, ...)
@@
-39,6
+43,10
@@
void modalfatalbox(char *p, ...)
vfprintf(stderr, p, ap);
va_end(ap);
fputc('\n', stderr);
vfprintf(stderr, p, ap);
va_end(ap);
fputc('\n', stderr);
+ if (logctx) {
+ log_free(logctx);
+ logctx = NULL;
+ }
cleanup_exit(1);
}
void connection_fatal(void *frontend, char *p, ...)
cleanup_exit(1);
}
void connection_fatal(void *frontend, char *p, ...)
@@
-49,6
+57,10
@@
void connection_fatal(void *frontend, char *p, ...)
vfprintf(stderr, p, ap);
va_end(ap);
fputc('\n', stderr);
vfprintf(stderr, p, ap);
va_end(ap);
fputc('\n', stderr);
+ if (logctx) {
+ log_free(logctx);
+ logctx = NULL;
+ }
cleanup_exit(1);
}
void cmdline_error(char *p, ...)
cleanup_exit(1);
}
void cmdline_error(char *p, ...)