diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-04-21 15:55:33 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-09-30 15:06:20 -0700 |
commit | b1745c3eb4f84c2b68a90cbec6f6a9255ece4645 (patch) | |
tree | 3cac8259fbeded707c996bd478856426594f0ad0 /src/Vendor.c | |
parent | e18ef34ee7694b9b423684eff1ed040859e4cd53 (diff) |
Fix fd leak when write() fails in WriteToFile()
Reported by parfait 1.1 bug checking tool:
File Descriptor Leak: Leaked File Descriptor fd
at line 1098 of src/MultiSrc.c in function 'WriteToFile'.
fd initialized at line 1096 with creat
fd leaks when creat(name, 438) != -1 at line 1096.
(Adapted from libXaw commit a30892ed9b6d193f6eb2bab5b37180ac8f63b0b1.)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Vendor.c')
0 files changed, 0 insertions, 0 deletions