Skip to content

Commit

Permalink
Fixed HAL destroying of dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-JanGootzen committed May 31, 2023
1 parent 8802785 commit dab95a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dpfs_hal/src/snap.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ static void dpfs_hal_destroy_dev(struct dpfs_hal_device *dev)
if (hal->ops.unregister_device)
hal->ops.unregister_device(hal->user_data, dev->device_id);

virtio_fs_ctrl_destroy(hal->devices[dev->device_id].snap_ctrl);
free(hal->devices[dev->device_id].tag);
virtio_fs_ctrl_destroy(dev->snap_ctrl);
free(dev->tag);
}

__attribute__((visibility("default")))
Expand Down

0 comments on commit dab95a1

Please sign in to comment.