don't close input files in got_diffreg(); callers will do that
diff --git a/lib/diffreg.c b/lib/diffreg.c
index 8b76ce3..2212408 100644
--- a/lib/diffreg.c
+++ b/lib/diffreg.c
@@ -419,10 +419,6 @@ closem:
if (*rval == D_SAME)
*rval = D_DIFFER;
}
- if (f1 != NULL && fclose(f1) != 0 && err == NULL)
- err = got_error_from_errno();
- if (f2 != NULL && fclose(f2) != 0 && err == NULL)
- err = got_error_from_errno();
return (err);
}