X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/91a1e147ae0eaf958d4a7bd76ae037e5c2591c29..4c4266d9c9530fc051a0506f915761bcc9f8c3c6:/backup.c diff --git a/backup.c b/backup.c index e9dfb496..c1b80834 100644 --- a/backup.c +++ b/backup.c @@ -199,7 +199,7 @@ static int keep_backup(char *fname) if (do_stat(fname, &st)) return 1; #endif - file = make_file(fname, NULL, NO_EXCLUDES); + file = make_file(fname, NO_EXCLUDES); /* the file could have disappeared */ if (!file) return 1; @@ -282,8 +282,7 @@ static int keep_backup(char *fname) } } set_perms(keep_name, file, NULL, 0); - free_file(file); - free(file); + free_file(file, FREE_STRUCT); if (verbose > 1) rprintf(FINFO, "keep_backup %s -> %s\n", fname, keep_name);