diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-04-21 15:49:33 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-04-21 15:55:18 -0700 |
commit | 26fb314644fd01928fc881e72e36b2c6bdda5b3b (patch) | |
tree | 447300359b44b908386d1bcbd9234fb4aa2ad24c /README | |
parent | a5630e166921b5b5322b30fb152df01bb6536e42 (diff) |
Fix fd leak when fdopen() fails in InitStringOrFile()
Found by parfait 1.1p2 bug checking tool:
File Descriptor Leak: Leaked File Descriptor fd
at line 1507 of src/AsciiSrc.c in function 'InitStringOrFile'.
fd initialized at line 1488 with open
fd leaks when open(src->ascii_src.string, open_mode, 438) != -1 at line 1488.
at line 1276 of src/MultiSrc.c in function 'InitStringOrFile'.
fd initialized at line 1257 with open
fd leaks when open(src->multi_src.string, open_mode, 438) != -1 at line 1257.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions