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

Reply via email to