diff --git a/volumes.c b/volumes.c index a61928c1..36f60501 100644 --- a/volumes.c +++ b/volumes.c @@ -188,6 +188,7 @@ again: goto again; } + list_del(&fs_devices->list); free(fs_devices); return 0; } diff --git a/volumes.h b/volumes.h index b1ff3d04..2e960b50 100644 --- a/volumes.h +++ b/volumes.h @@ -67,7 +67,7 @@ struct btrfs_device { struct btrfs_fs_devices { u8 fsid[BTRFS_FSID_SIZE]; /* FS specific uuid */ - /* the device with this id has the most recent coyp of the super */ + /* the device with this id has the most recent copy of the super */ u64 latest_devid; u64 latest_trans; u64 lowest_devid;