From 9de97de17519d9f02f15b8d562eb266a246776e3 Mon Sep 17 00:00:00 2001 From: marcel Date: Fri, 30 Jan 2004 20:52:54 +0000 Subject: In Write_Disk(), fix the non-error case where we returned to the caller without closing the disk device and freeing allocated memory. Not closing the disk device prevents GEOM from retasting after spoiling. Pointy hat: marcel --- lib/libdisk/write_ia64_disk.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/libdisk') diff --git a/lib/libdisk/write_ia64_disk.c b/lib/libdisk/write_ia64_disk.c index b57bbd8..0b57fdf 100644 --- a/lib/libdisk/write_ia64_disk.c +++ b/lib/libdisk/write_ia64_disk.c @@ -412,10 +412,6 @@ Write_Disk(const struct disk *disk) * Update and write the in-memory copy of the GPT. */ error = update_gpt(fd, disk, hdr, tbl); - if (error) - goto bail; - - return (0); bail: close(fd); -- cgit v1.1