plug fd leak in read_object_header_privsep()
diff --git a/lib/object.c b/lib/object.c
index 425c26d..a8913e5 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -252,6 +252,7 @@ read_object_header_privsep(struct got_object **obj, int fd)
f = fdopen(fd, "rb");
if (f == NULL) {
err = got_error_from_errno();
+ close(fd);
goto done;
}