[PATCH] Don't leak file descriptors in locale-archive reader
Ulrich Drepper
drepper@redhat.com
Wed Aug 28 15:08:00 GMT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jakub Jelinek wrote:
> 2002-08-28 Jakub Jelinek <jakub@redhat.com>
>
> * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
> check to close_and_out close. Replace return NULL statements where
> fd might be >= 0 with goto close_and_out. Close the file descriptor
> when it is no longer needed.
Looks good, I've applied it. Thanks,
- --
- ---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE9bUn12ijCOnn/RHQRArPSAKCJURD0lCHs943Wn3cebx2WIWJ6bACgwTYG
dZcd46saLy2CVBy7trkdvNI=
=DoR4
-----END PGP SIGNATURE-----
More information about the Libc-hacker
mailing list