From 12768a24b19b9fe6746f9545c9d77bff1e306db4 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 12 Aug 2019 22:51:09 +0200 Subject: TIFFClientOpen(): fix memory leak if one of the required callbacks is not provided. Fixed Coverity GDAL CID 1404110 --- libtiff/tif_open.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libtiff/tif_open.c b/libtiff/tif_open.c index f7b7e0f8..3cb53d4e 100644 --- a/libtiff/tif_open.c +++ b/libtiff/tif_open.c @@ -131,6 +131,7 @@ TIFFClientOpen( if (!readproc || !writeproc || !seekproc || !closeproc || !sizeproc) { TIFFErrorExt(clientdata, module, "One of the client procedures is NULL pointer."); + _TIFFfree(tif); goto bad2; } tif->tif_readproc = readproc; -- cgit v1.2.1