Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas033.isp.belgacom.be (localhost [127.0.0.1])
        by inav005.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id kA256jtN020989
        for <joris.at.lebbeke@skynet.be>; Thu, 2 Nov 2006 06:06:45 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx020.isp.belgacom.be (inmx020.isp.belgacom.be [195.238.5.139])
	by inas033.isp.belgacom.be (Postfix) with ESMTP id 2C16C4C8050
	for <joris.at.lebbeke@skynet.be>; Thu,  2 Nov 2006 06:06:45 +0100 (CET)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx020.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id kA256bjQ017702
        for <joris.at.lebbeke@skynet.be>; Thu, 2 Nov 2006 06:06:37 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id kA250LnO004907;
	Thu, 2 Nov 2006 00:00:40 -0500
Received: from outmx025.isp.belgacom.be (outmx025.isp.belgacom.be
	[195.238.4.49])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id kA250IN9004904
	for <tiff@lists.maptools.org>; Thu, 2 Nov 2006 00:00:18 -0500
Received: from outmx025.isp.belgacom.be (localhost [127.0.0.1])
	by outmx025.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22)
	with ESMTP id kA25075E011084
	for <tiff@lists.maptools.org>; Thu, 2 Nov 2006 06:00:07 +0100
	(envelope-from <joris.at.lebbeke@skynet.be>)
Received: from dfgrrxsknr4e (210.134-246-81.adsl-dyn.isp.belgacom.be
	[81.246.134.210])
	by outmx025.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22)
	with SMTP id kA2502lk011039; Thu, 2 Nov 2006 06:00:02 +0100
	(envelope-from <joris.at.lebbeke@skynet.be>)
Message-ID: <000701c6fe3b$bed34440$d286f651@dfgrrxsknr4e>
From: "Joris" <joris.at.lebbeke@skynet.be>
To: "Paul J. Lucas" <pauljlucas@mac.com>
References: <438A3C8A-AB37-47B3-8086-69473B08B1DE@mac.com>
Subject: Re: [Tiff] free() data returned by TIFFGetField() ?
Date: Thu, 2 Nov 2006 05:59:54 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
Cc: tiff@lists.maptools.org
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00001d01
X-MSP-STORE: Thu, 02 Nov 2006 06:06:48 +0100
Status: RO

Paul J. Lucas wrote:
> 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

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
