2006.11.02 04:20 "[Tiff] free() data returned by TIFFGetField() ?", by Paul J. Lucas

2006.11.02 04:59 "Re: [Tiff] free() data returned by TIFFGetField() ?", by Joris Van Damme

When doing TIFFGetField() for fields that return void* and a length, e.g., TIFFTAG_ICCPROFILE, is it necessary to free the data returned? I.e., is it copied to a buffer that the caller is responsible for freeing?

No, it is not necessary nor permitted to free that data. A pointer to a data block internally allocated, managed, and freed by the library itself, is returned.

Best regards,

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html