From b60c2339a9c7ae944798f38feff7168e8949f83a Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Fri, 30 Jan 2004 20:52:54 +0000 Subject: [PATCH] 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(-) diff --git a/lib/libdisk/write_ia64_disk.c b/lib/libdisk/write_ia64_disk.c index b57bbd88ae3..0b57fdff5f5 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);