svn commit: r217440 - stable/8/lib/libc/net
Konstantin Belousov
kib at FreeBSD.org
Sat Jan 15 08:35:41 UTC 2011
Author: kib
Date: Sat Jan 15 08:35:41 2011
New Revision: 217440
URL: http://svn.freebsd.org/changeset/base/217440
Log:
MFC r217143:
Fix struct FILE * leak on error (in disabled by default hesiod support code).
PR: 153756
Modified:
stable/8/lib/libc/net/hesiod.c
Directory Properties:
stable/8/lib/libc/ (props changed)
stable/8/lib/libc/locale/ (props changed)
stable/8/lib/libc/stdtime/ (props changed)
stable/8/lib/libc/sys/ (props changed)
Modified: stable/8/lib/libc/net/hesiod.c
==============================================================================
--- stable/8/lib/libc/net/hesiod.c Sat Jan 15 08:18:58 2011 (r217439)
+++ stable/8/lib/libc/net/hesiod.c Sat Jan 15 08:35:41 2011 (r217440)
@@ -324,6 +324,7 @@ read_config_file(ctx, filename)
? &ctx->lhs : &ctx->rhs;
*which = strdup(data);
if (!*which) {
+ fclose(fp);
errno = ENOMEM;
return -1;
}
More information about the svn-src-stable-8
mailing list