X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/96293cf991fc9b550f48c08af74d834723a00a3a..1e1ca25343206df0ad8dccaefdae0506c7817532:/flist.c diff --git a/flist.c b/flist.c index 36384de8..f163db25 100644 --- a/flist.c +++ b/flist.c @@ -980,10 +980,11 @@ struct file_struct *make_file(const char *fname, struct file_list *flist, return file; } -/* Only called for temporary file_struct entries. */ +/* Only called for temporary file_struct entries created by make_file(). */ void unmake_file(struct file_struct *file) { - free(file->extras - (flist_extra_cnt - 1)); + int extra_cnt = flist_extra_cnt - 1 + LEN64_BUMP(file); + free(file->extras - extra_cnt); } static struct file_struct *send_file_name(int f, struct file_list *flist,