Make idev, hlink and file_struct + strings use allocation
[rsync/rsync.git] / backup.c
index e9dfb49..248ae90 100644 (file)
--- a/backup.c
+++ b/backup.c
@@ -189,6 +189,7 @@ static int keep_backup(char *fname)
                        backup_dir[--backup_dir_len] = '\0';
                if (verbose > 0)
                        rprintf(FINFO, "backup_dir is %s\n", backup_dir);
+
                initialised = 1;
        }
 
@@ -282,7 +283,6 @@ static int keep_backup(char *fname)
                }
        }
        set_perms(keep_name, file, NULL, 0);
-       free_file(file);
        free(file);
 
        if (verbose > 1)