X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a76a0039fc6f02f88dd1aba866c03ceefa7fafec..0b91056090d768c4bdc6aa83d929d09416d34e89:/rsync.c diff --git a/rsync.c b/rsync.c index e9b5e3fe..52405309 100644 --- a/rsync.c +++ b/rsync.c @@ -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; }