summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/hesiod.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/hesiod.c')
-rw-r--r--lib/libc/net/hesiod.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/net/hesiod.c b/lib/libc/net/hesiod.c
index c22bdba..2413727 100644
--- a/lib/libc/net/hesiod.c
+++ b/lib/libc/net/hesiod.c
@@ -324,6 +324,7 @@ read_config_file(ctx, filename)
? &ctx->lhs : &ctx->rhs;
*which = strdup(data);
if (!*which) {
+ fclose(fp);
errno = ENOMEM;
return -1;
}
OpenPOWER on IntegriCloud