diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-03-07 14:36:14 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-03-07 14:36:14 -0500 |
commit | d4ad27a104af707b20651327d7a57dd9dc780f79 (patch) | |
tree | 88bd784bc8a6f6de70cc6efbbed9224e5b4cc948 /src/core/load-fragment.c | |
parent | 33f1b0aeea5a2bc9100360f14f7da1a4f61c3c01 (diff) |
core/load-fragment: safe_close() protects errno
Diffstat (limited to 'src/core/load-fragment.c')
-rw-r--r-- | src/core/load-fragment.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 6d0192fc72..ea66ce0149 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -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; |