Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Aug 2011 15:22:46 +0000 (UTC)
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r224783 - stable/7/usr.sbin/kbdmap
Message-ID:  <201108111522.p7BFMkoV098163@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jh
Date: Thu Aug 11 15:22:46 2011
New Revision: 224783
URL: http://svn.freebsd.org/changeset/base/224783

Log:
  MFC r216047 by kevlo:
  
  Fix fd leak in get_font
  
  MFC r222568:
  
  Don't try to close the stream if fopen(3) fails.
  
  PR:		bin/155349

Modified:
  stable/7/usr.sbin/kbdmap/kbdmap.c
Directory Properties:
  stable/7/usr.sbin/kbdmap/   (props changed)

Modified: stable/7/usr.sbin/kbdmap/kbdmap.c
==============================================================================
--- stable/7/usr.sbin/kbdmap/kbdmap.c	Thu Aug 11 14:17:04 2011	(r224782)
+++ stable/7/usr.sbin/kbdmap/kbdmap.c	Thu Aug 11 15:22:46 2011	(r224783)
@@ -226,6 +226,7 @@ get_font(void)
 				}
 			}
 		}
+		fclose(fp);
 	} else
 		fprintf(stderr, "Could not open %s for reading\n", sysconfig);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108111522.p7BFMkoV098163>