diff options
author | bfriesen <bfriesen> | 2015-05-28 13:26:03 +0000 |
---|---|---|
committer | bfriesen <bfriesen> | 2015-05-28 13:26:03 +0000 |
commit | 5532148d394c769accb1e31140c2fa45fe69d859 (patch) | |
tree | 2624a1f8d20b5072ef49eea195e24d73f8bcaf87 /contrib | |
parent | 4b7f710adb84c0d9a3c024dd7638187e58141488 (diff) | |
download | libtiff-5532148d394c769accb1e31140c2fa45fe69d859.tar.gz |
* contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
Coverity 298615 "Resource leak".
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/addtiffo/tif_ovrcache.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/addtiffo/tif_ovrcache.c b/contrib/addtiffo/tif_ovrcache.c index e19483bc..fc1a7f21 100644 --- a/contrib/addtiffo/tif_ovrcache.c +++ b/contrib/addtiffo/tif_ovrcache.c @@ -1,5 +1,5 @@ /****************************************************************************** - * $Id: tif_ovrcache.c,v 1.9 2010-06-08 18:55:15 bfriesen Exp $ + * $Id: tif_ovrcache.c,v 1.10 2015-05-28 13:26:03 bfriesen Exp $ * * Project: TIFF Overview Builder * Purpose: Library functions to maintain two rows of tiles or two strips @@ -109,7 +109,9 @@ TIFFOvrCache *TIFFCreateOvrCache( TIFF *hTIFF, toff_t nDirOffset ) { TIFFErrorExt( hTIFF->tif_clientdata, hTIFF->tif_name, "Can't allocate memory for overview cache." ); - /* TODO: use of TIFFError is inconsistent with use of fprintf in addtiffo.c, sort out */ + /* TODO: use of TIFFError is inconsistent with use of fprintf in addtiffo.c, sort out */ + if (psCache->pabyRow1Blocks) _TIFFfree(psCache->pabyRow1Blocks); + if (psCache->pabyRow2Blocks) _TIFFfree(psCache->pabyRow2Blocks); return NULL; } |