diff --git a/libtiff/tif_dirinfo.c b/libtiff/tif_dirinfo.c index c7babb4e..5a815c1d 100644 --- a/libtiff/tif_dirinfo.c +++ b/libtiff/tif_dirinfo.c @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_dirinfo.c,v 1.17 2002-04-17 13:09:04 dron Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_dirinfo.c,v 1.18 2002-08-15 12:59:50 warmerda Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -463,6 +463,8 @@ _TIFFCreateAnonFieldInfo(TIFF *tif, ttag_t tag, TIFFDataType field_type) fld->field_oktochange = TRUE; fld->field_passcount = TRUE; fld->field_name = (char *) _TIFFmalloc(32); + + /* note that this name is a special sign to TIFFClose() to free the field*/ sprintf(fld->field_name, "Tag %d", (int) tag); return fld;