svn commit: r217143 - head/lib/libc/net
Konstantin Belousov
kib at FreeBSD.org
Sat Jan 8 10:56:58 UTC 2011
Author: kib
Date: Sat Jan 8 10:56:58 2011
New Revision: 217143
URL: http://svn.freebsd.org/changeset/base/217143
Log:
Fix struct FILE * leak on error (in disabled by default hesiod support code).
Submitted by: henning petersen <henning.petersen t-online de>
PR: 153756
MFC after: 1 week
Modified:
head/lib/libc/net/hesiod.c
Modified: head/lib/libc/net/hesiod.c
==============================================================================
--- head/lib/libc/net/hesiod.c Sat Jan 8 08:58:46 2011 (r217142)
+++ head/lib/libc/net/hesiod.c Sat Jan 8 10:56:58 2011 (r217143)
@@ -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-all
mailing list