Commit bcd28dfd6db4114ad7d859722b35b1ccf2c613ac

Stefan Sperling 2019-02-11T12:32:29

don't close input files in got_diffreg(); callers will do that

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
 }