AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.04.01 00:29 "[Tiff] file handle leak in tiv_open.c in CVS", by Robert Lowery
2004.04.04 17:58 "Re: [Tiff] file handle leak in tiv_open.c in CVS", by Frank Warmerdam

2004.04.01 00:29 "[Tiff] file handle leak in tiv_open.c in CVS", by Robert Lowery

I believe there is a handle leak in TIFFClientOpen

The last two lines are currently
return ((TIFF*)0);
(void) (*closeproc)(clientdata);

I believe they should be swapped to correctly close the file on error

-Robert

====================================
Robert Lowery
Software Engineer
Color Technology Solutions Pty. Ltd.
Building 14
1508 Centre Road
Clayton Victoria Australia
Phone  +61 3 9550 6620
Fax    +61 3 9550 6699
Email: robert.lowery@ColorTS.com.au
Web:   http://www.ColorTS.com.au
====================================