X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/bfa5400d3e166e1acc25dbe0b7f1fdf74b272568..954a954017ef83065bfb605b0bd99d8856071892:/scp.c?ds=inline diff --git a/scp.c b/scp.c index 70f13be9..5e98536f 100644 --- a/scp.c +++ b/scp.c @@ -466,6 +466,8 @@ static void print_stats(char *name, unsigned long size, unsigned long done, if (done == size) printf("\n"); + + fflush(stdout); } } @@ -2176,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); }