diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-06-06 03:17:47 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-06-06 03:17:47 -0400 |
commit | 60158bff74e478a8031f618ea5e0546bf41a3523 (patch) | |
tree | 87bcb18c9d4efa3410579d9467b40047f7a91ca3 /src/ctype | |
parent | 2abb70c302efe46dfd8fd9e1d64fa00f1376f428 (diff) | |
download | musl-60158bff74e478a8031f618ea5e0546bf41a3523.tar.gz musl-60158bff74e478a8031f618ea5e0546bf41a3523.tar.bz2 musl-60158bff74e478a8031f618ea5e0546bf41a3523.tar.xz musl-60158bff74e478a8031f618ea5e0546bf41a3523.zip |
fix fd leak in tmpfile when the fdopen operation fails
this condition could only happen due to malloc failure.
the fdopen operation is also moved to take place after the unlink to
minimize the window during which a link to the file exists in the
directory table.
Diffstat (limited to 'src/ctype')
0 files changed, 0 insertions, 0 deletions