libtiff/tif_lzw.c:223: error: Memory Leak
  memory dynamically allocated by call to `_TIFFmalloc()` at line 210, column 28 is not reachable after line 223, column 10.

libtiff/tif_lzw.c:197:1: start of procedure LZWSetupDecode()
195. }
196. 
197. static int
     ^
198. LZWSetupDecode(TIFF* tif)
199. {

libtiff/tif_lzw.c:200:2: 
198. LZWSetupDecode(TIFF* tif)
199. {
200. 	static const char module[] = "LZWSetupDecode";
      ^
201. 	LZWCodecState* sp = DecoderState(tif);
202. 	int code;

libtiff/tif_lzw.c:201:2: 
199. {
200. 	static const char module[] = "LZWSetupDecode";
201. 	LZWCodecState* sp = DecoderState(tif);
      ^
202. 	int code;
203. 

libtiff/tif_lzw.c:204:6: Taking true branch
202. 	int code;
203. 
204. 	if( sp == NULL )
          ^
205. 	{
206. 		/*

libtiff/tif_lzw.c:210:3: 
208. 		 * values.
209. 		*/
210. 		tif->tif_data = (uint8*) _TIFFmalloc(sizeof(LZWCodecState));
       ^
211. 		if (tif->tif_data == NULL)
212. 		{

libtiff/tif_unix.c:308:1: start of procedure _TIFFmalloc()
  306. #endif
  307. 
  308. void*
       ^
  309. _TIFFmalloc(tmsize_t s)
  310. {

libtiff/tif_unix.c:311:13: Taking false branch
  309. _TIFFmalloc(tmsize_t s)
  310. {
  311.         if (s == 0)
                   ^
  312.                 return ((void *) NULL);
  313. 

libtiff/tif_unix.c:314:2: 
  312.                 return ((void *) NULL);
  313. 
  314. 	return (malloc((size_t) s));
        ^
  315. }
  316. 

libtiff/tif_unix.c:315:1: return from a call to _TIFFmalloc
  313. 
  314. 	return (malloc((size_t) s));
  315. }
       ^
  316. 
  317. void* _TIFFcalloc(tmsize_t nmemb, tmsize_t siz)

libtiff/tif_lzw.c:211:7: Taking false branch
209. 		*/
210. 		tif->tif_data = (uint8*) _TIFFmalloc(sizeof(LZWCodecState));
211. 		if (tif->tif_data == NULL)
           ^
212. 		{
213. 			TIFFErrorExt(tif->tif_clientdata, module, "No space for LZW state block");

libtiff/tif_lzw.c:217:3: 
215. 		}
216. 
217. 		DecoderState(tif)->dec_codetab = NULL;
       ^
218. 		DecoderState(tif)->dec_decode = NULL;
219. 

libtiff/tif_lzw.c:218:3: 
216. 
217. 		DecoderState(tif)->dec_codetab = NULL;
218. 		DecoderState(tif)->dec_decode = NULL;
       ^
219. 
220. 		/*

libtiff/tif_lzw.c:223:10: 
221. 		 * Setup predictor setup.
222. 		 */
223. 		(void) TIFFPredictorInit(tif);
              ^
224. 
225. 		sp = DecoderState(tif);

libtiff/tif_predict.c:815:1: start of procedure TIFFPredictorInit()
  813. }
  814. 
  815. int
       ^
  816. TIFFPredictorInit(TIFF* tif)
  817. {

libtiff/tif_predict.c:818:2: 
  816. TIFFPredictorInit(TIFF* tif)
  817. {
  818. 	TIFFPredictorState* sp = PredictorState(tif);
        ^
  819. 
  820. 	assert(sp != 0);

libtiff/tif_predict.c:820:2: Condition is true
  818. 	TIFFPredictorState* sp = PredictorState(tif);
  819. 
  820. 	assert(sp != 0);
        ^
  821. 
  822. 	/*

libtiff/tif_predict.c:825:7: Taking true branch
  823. 	 * Merge codec-specific tag information.
  824. 	 */
  825. 	if (!_TIFFMergeFields(tif, predictFields,
             ^
  826. 			      TIFFArrayCount(predictFields))) {
  827. 		TIFFErrorExt(tif->tif_clientdata, "TIFFPredictorInit",

libtiff/tif_predict.c:827:3: 
  825. 	if (!_TIFFMergeFields(tif, predictFields,
  826. 			      TIFFArrayCount(predictFields))) {
  827. 		TIFFErrorExt(tif->tif_clientdata, "TIFFPredictorInit",
         ^
  828. 		    "Merging Predictor codec-specific tags failed");
  829. 		return 0;

libtiff/tif_error.c:64:1: start of procedure TIFFErrorExt()
    62. }
    63. 
    64. void
        ^
    65. TIFFErrorExt(thandle_t fd, const char* module, const char* fmt, ...)
    66. {

libtiff/tif_error.c:68:6: Taking false branch
    66. {
    67. 	va_list ap;
    68. 	if (_TIFFerrorHandler) {
             ^
    69. 		va_start(ap, fmt);
    70. 		(*_TIFFerrorHandler)(module, fmt, ap);

libtiff/tif_error.c:73:6: Taking false branch
    71. 		va_end(ap);
    72. 	}
    73. 	if (_TIFFerrorHandlerExt) {
             ^
    74. 		va_start(ap, fmt);
    75. 		(*_TIFFerrorHandlerExt)(fd, module, fmt, ap);

libtiff/tif_error.c:73:2: 
    71. 		va_end(ap);
    72. 	}
    73. 	if (_TIFFerrorHandlerExt) {
         ^
    74. 		va_start(ap, fmt);
    75. 		(*_TIFFerrorHandlerExt)(fd, module, fmt, ap);

libtiff/tif_error.c:78:1: return from a call to TIFFErrorExt
    76. 		va_end(ap);
    77. 	}
    78. }
        ^
    79. 
    80. /*

libtiff/tif_predict.c:829:3: 
  827. 		TIFFErrorExt(tif->tif_clientdata, "TIFFPredictorInit",
  828. 		    "Merging Predictor codec-specific tags failed");
  829. 		return 0;
         ^
  830. 	}
  831. 

libtiff/tif_predict.c:854:1: return from a call to TIFFPredictorInit
  852. 	sp->decodepfunc = NULL;			/* no predictor routine */
  853. 	return 1;
  854. }
       ^
  855. 
  856. int
