diff --git a/kernel-shared/zoned.c b/kernel-shared/zoned.c index 1cf8a582..31352c9c 100644 --- a/kernel-shared/zoned.c +++ b/kernel-shared/zoned.c @@ -552,6 +552,7 @@ size_t btrfs_sb_io(int fd, void *buf, off_t offset, int rw) zones = (struct blk_zone *)(rep + 1); ret = sb_log_location(fd, zones, rw, &mapped); + free(rep); /* * Special case: no superblock found in the zones. This case happens * when initializing a file-system.