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; } _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"