| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2006.07.25 15:43 "Handle not close causing memory leak with libtiff 3.8.2", by Thierry PierronHi all, Think I found a very stupid mistake in the file tif_msdos.c of libtiff v3.8.2, line 114 : return (TIFFFdOpen(fd, name, mode)); Which leave its descriptior "fd" opened if trying to open a file that is not a TIFF. Fix is obvious : TIFF * ret = TIFFFdOpen(fd, name, mode); if (ret == NULL) close(fd); return ret; -- Thierry Pierron Polkadots Software Inc. 2501 Dollard Lasalle, QC H8N 1S2 Canada |
|||||||