core/load-fragment: safe_close() protects errno

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2015-03-07 14:36:14 -05:00
parent 33f1b0aeea
commit d4ad27a104
+1 -2
View File
@@ -3432,9 +3432,8 @@ static int open_follow(char **filename, FILE **_f, Set *names, char **_final) {
f = fdopen(fd, "re");
if (!f) {
r = -errno;
safe_close(fd);
return r;
return -errno;
}
*_f = f;