X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/bd6abc4939621c455f931905f0530115eb8c443c..8f3f8eec08624e538e98f43a3157f3d9a0c41c79:/receiver.c diff --git a/receiver.c b/receiver.c index da89819a..75bf0cea 100644 --- a/receiver.c +++ b/receiver.c @@ -305,6 +305,11 @@ int recv_files(int f_in,struct file_list *flist,char *local_name) rprintf(FINFO,"recv_files(%d) starting\n",flist->count); } + if (flist->hlink_pool) { + pool_destroy(flist->hlink_pool); + flist->hlink_pool = NULL; + } + while (1) { cleanup_disable(); @@ -356,7 +361,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name) /* open the file */ fd1 = do_open(fnamecmp, O_RDONLY, 0); - if ((fd1 == -1) && (compare_dest != NULL)) { + if (fd1 == -1 && compare_dest != NULL) { /* try the file at compare_dest instead */ pathjoin(fnamecmpbuf, sizeof fnamecmpbuf, compare_dest, fname);