X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5d145a14925b0ea8a60af808252a7c3cf78f9631..679539d7ab96f188640d159ea0b004275db67356:/scp.c diff --git a/scp.c b/scp.c index 79d3f9ae..5e98536f 100644 --- a/scp.c +++ b/scp.c @@ -2178,6 +2178,12 @@ int psftp_main(int argc, char *argv[]) if (gui_mode) gui_send_errcount(list, errs); + cmdline_cleanup(); + console_provide_logctx(NULL); + back->free(backhandle); + backhandle = NULL; + back = NULL; + sk_cleanup(); return (errs == 0 ? 0 : 1); }