commit 6cd97fccb30387c245f12ff4dad87354174aaa9e from: Stefan Sperling date: Sun Apr 22 14:34:33 2018 UTC plug fd leak in read_object_header_privsep() commit - d5003b790484caa6509175907d44dedd373b59d3 commit + 6cd97fccb30387c245f12ff4dad87354174aaa9e blob - 425c26d14098f9f28e48521cb347a23089a2264d blob + a8913e53fd724b292c488585add0d56ead5857be --- lib/object.c +++ lib/object.c @@ -252,6 +252,7 @@ read_object_header_privsep(struct got_object **obj, in f = fdopen(fd, "rb"); if (f == NULL) { err = got_error_from_errno(); + close(fd); goto done; }