X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e7ebc36c70b27d9354dae6a1bc6d7ec1aefa6e6f..3a6a366fc5ac1f418446128de50b4f2a174399fc:/rsync.c diff --git a/rsync.c b/rsync.c index e9b5e3fe..7dab5288 100644 --- a/rsync.c +++ b/rsync.c @@ -651,7 +651,7 @@ static void delete_files(struct file_list *flist) } } -static char *cleanup_fname = NULL; +static char *cleanup_fname; void exit_cleanup(int code) { @@ -936,12 +936,14 @@ off_t send_files(struct file_list *flist,int f_out,int f_in) if (fd == -1) { fprintf(FERROR,"send_files failed to open %s: %s\n", fname,strerror(errno)); + free_sums(s); continue; } /* map the local file */ if (fstat(fd,&st) != 0) { fprintf(FERROR,"fstat failed : %s\n",strerror(errno)); + free_sums(s); close(fd); return -1; } @@ -1051,7 +1053,7 @@ void generate_files(int f,struct file_list *flist,char *local_name,int f_recv) if (verbose > 2) - fprintf(FERROR,"generator wrote %d\n",write_total()); + fprintf(FERROR,"generator wrote %ld\n",(long)write_total()); }