diff --git a/cmds-restore.c b/cmds-restore.c index 44581df3..808d1f17 100644 --- a/cmds-restore.c +++ b/cmds-restore.c @@ -612,7 +612,7 @@ static int copy_metadata(struct btrfs_root *root, int fd, } } out: - btrfs_release_path(path); + btrfs_free_path(path); return ret; }