1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-04 21:12:47 -05:00

Add some missing calls to cleanup_exit.

[originally from svn r9936]
This commit is contained in:
Simon Tatham
2013-07-19 17:44:47 +00:00
parent 311761e245
commit 13bac5ed69
3 changed files with 10 additions and 3 deletions

View File

@ -125,6 +125,8 @@ char *platform_get_x_display(void) {
int main(int argc, char **argv)
{
extern int pt_main(int argc, char **argv);
int ret;
sk_init();
flags = FLAG_VERBOSE | FLAG_INTERACTIVE;
default_protocol = be_default_protocol;
@ -135,5 +137,7 @@ int main(int argc, char **argv)
if (b)
default_port = b->default_port;
}
return pt_main(argc, argv);
ret = pt_main(argc, argv);
cleanup_exit(ret);
return ret; /* not reached, but placates optimisers */
}