libXpm: Changes to 'master'
Alan Coopersmith
alanc at kemper.freedesktop.org
Tue Apr 23 23:08:22 PDT 2013
src/WrFFrI.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 980e9f851e47d31eed9635a6399a23d1456548d0
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Apr 22 13:23:09 2013 -0700
Close fd if fdopen() or xpmPipeThrough() fails in OpenWriteFile()
Fixes leak found by parfait 1.1 bug checking tool:
File Descriptor Leak: Leaked File Descriptor fd
at line 350 of lib/libXpm/src/WrFFrI.c in function 'OpenWriteFile'.
fd initialized at line 332 with open
fd leaks when strcmp(".Z", (filename + (len - 2))) != 0 at line 337
and strcmp(".gz", (filename + (len - 3))) != 0 at line 340.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Reviewed-by: Mark Kettenis <kettenis at openbsd.org>
More information about the xorg-commit
mailing list