svn commit: r224783 - stable/7/usr.sbin/kbdmap
Jaakko Heinonen
jh at FreeBSD.org
Thu Aug 11 15:22:46 UTC 2011
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);
More information about the svn-src-stable-7
mailing list