From 60205a8369da581e0bac8a847ec8ebab2296617a Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Tue, 29 Jul 2008 18:45:40 +0000 Subject: [PATCH] note leak of anonymous field structure --- libtiff/tif_dirread.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libtiff/tif_dirread.c b/libtiff/tif_dirread.c index 89de52b1..2490984e 100644 --- a/libtiff/tif_dirread.c +++ b/libtiff/tif_dirread.c @@ -1,4 +1,4 @@ -/* $Id: tif_dirread.c,v 1.142 2008-05-25 03:11:33 fwarmerdam Exp $ */ +/* $Id: tif_dirread.c,v 1.143 2008-07-29 18:45:40 fwarmerdam Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -3454,6 +3454,8 @@ TIFFReadDirectory(TIFF* tif) TIFFWarningExt(tif->tif_clientdata, module, "Unknown field with tag %d (0x%x) encountered", dp->tdir_tag,dp->tdir_tag); + /* the following knowingly leaks the + anonymous field structure */ if (!_TIFFMergeFields(tif, _TIFFCreateAnonField(tif, dp->tdir_tag,