tools/tiffcp.c:1115: error: Memory Leak
  memory dynamically allocated by call to `_TIFFmalloc()` at line 1113, column 10 is not reachable after line 1115, column 17.

tools/tiffcp.c:1102:1: start of procedure cpSeparate2ContigByRow()
1100.  * Separate -> contig by row.
1101.  */
1102. DECLAREcpFunc(cpSeparate2ContigByRow)
      ^
1103. {
1104. 	tsize_t scanlinesizein = TIFFScanlineSize(in);

tools/tiffcp.c:1104:2: 
1102. DECLAREcpFunc(cpSeparate2ContigByRow)
1103. {
1104. 	tsize_t scanlinesizein = TIFFScanlineSize(in);
       ^
1105. 	tsize_t scanlinesizeout = TIFFScanlineSize(out);
1106. 	tdata_t inbuf;

libtiff/tif_strip.c:321:1: start of procedure TIFFScanlineSize()
  319. 	return(scanline_size);
  320. }
  321. tmsize_t
       ^
  322. TIFFScanlineSize(TIFF* tif)
  323. {

libtiff/tif_strip.c:324:2: 
  322. TIFFScanlineSize(TIFF* tif)
  323. {
  324. 	static const char module[] = "TIFFScanlineSize";
        ^
  325. 	uint64 m;
  326. 	tmsize_t n;

libtiff/tif_strip.c:327:2: Skipping TIFFScanlineSize64(): empty list of specs
  325. 	uint64 m;
  326. 	tmsize_t n;
  327. 	m=TIFFScanlineSize64(tif);
        ^
  328. 	n=(tmsize_t)m;
  329. 	if ((uint64)n!=m)

libtiff/tif_strip.c:328:2: 
  326. 	tmsize_t n;
  327. 	m=TIFFScanlineSize64(tif);
  328. 	n=(tmsize_t)m;
        ^
  329. 	if ((uint64)n!=m)
  330. 	{

libtiff/tif_strip.c:329:6: Taking false branch
  327. 	m=TIFFScanlineSize64(tif);
  328. 	n=(tmsize_t)m;
  329. 	if ((uint64)n!=m)
            ^
  330. 	{
  331. 		TIFFErrorExt(tif->tif_clientdata,module,"Integer arithmetic overflow");

libtiff/tif_strip.c:334:2: 
  332. 		n=0;
  333. 	}
  334. 	return(n);
        ^
  335. }
  336. 

libtiff/tif_strip.c:335:1: return from a call to TIFFScanlineSize
  333. 	}
  334. 	return(n);
  335. }
       ^
  336. 
  337. /*

tools/tiffcp.c:1105:2: 
1103. {
1104. 	tsize_t scanlinesizein = TIFFScanlineSize(in);
1105. 	tsize_t scanlinesizeout = TIFFScanlineSize(out);
       ^
1106. 	tdata_t inbuf;
1107. 	tdata_t outbuf;

libtiff/tif_strip.c:321:1: start of procedure TIFFScanlineSize()
  319. 	return(scanline_size);
  320. }
  321. tmsize_t
       ^
  322. TIFFScanlineSize(TIFF* tif)
  323. {

libtiff/tif_strip.c:324:2: 
  322. TIFFScanlineSize(TIFF* tif)
  323. {
  324. 	static const char module[] = "TIFFScanlineSize";
        ^
  325. 	uint64 m;
  326. 	tmsize_t n;

libtiff/tif_strip.c:327:2: Skipping TIFFScanlineSize64(): empty list of specs
  325. 	uint64 m;
  326. 	tmsize_t n;
  327. 	m=TIFFScanlineSize64(tif);
        ^
  328. 	n=(tmsize_t)m;
  329. 	if ((uint64)n!=m)

libtiff/tif_strip.c:328:2: 
  326. 	tmsize_t n;
  327. 	m=TIFFScanlineSize64(tif);
  328. 	n=(tmsize_t)m;
        ^
  329. 	if ((uint64)n!=m)
  330. 	{

libtiff/tif_strip.c:329:6: Taking false branch
  327. 	m=TIFFScanlineSize64(tif);
  328. 	n=(tmsize_t)m;
  329. 	if ((uint64)n!=m)
            ^
  330. 	{
  331. 		TIFFErrorExt(tif->tif_clientdata,module,"Integer arithmetic overflow");

libtiff/tif_strip.c:334:2: 
  332. 		n=0;
  333. 	}
  334. 	return(n);
        ^
  335. }
  336. 

libtiff/tif_strip.c:335:1: return from a call to TIFFScanlineSize
  333. 	}
  334. 	return(n);
  335. }
       ^
  336. 
  337. /*

tools/tiffcp.c:1113:2: 
1111. 	tsample_t s;
1112. 
1113. 	inbuf = _TIFFmalloc(scanlinesizein);
       ^
1114. 	outbuf = _TIFFmalloc(scanlinesizeout);
1115. 	if (!inbuf || !outbuf)

libtiff/tif_unix.c:253:1: start of procedure _TIFFmalloc()
  251. #endif
  252. 
  253. void*
       ^
  254. _TIFFmalloc(tmsize_t s)
  255. {

libtiff/tif_unix.c:256:2: 
  254. _TIFFmalloc(tmsize_t s)
  255. {
  256. 	return (malloc((size_t) s));
        ^
  257. }
  258. 

libtiff/tif_unix.c:257:1: return from a call to _TIFFmalloc
  255. {
  256. 	return (malloc((size_t) s));
  257. }
       ^
  258. 
  259. void

tools/tiffcp.c:1114:2: 
1112. 
1113. 	inbuf = _TIFFmalloc(scanlinesizein);
1114. 	outbuf = _TIFFmalloc(scanlinesizeout);
       ^
1115. 	if (!inbuf || !outbuf)
1116. 		return 0;

libtiff/tif_unix.c:253:1: start of procedure _TIFFmalloc()
  251. #endif
  252. 
  253. void*
       ^
  254. _TIFFmalloc(tmsize_t s)
  255. {

libtiff/tif_unix.c:256:2: 
  254. _TIFFmalloc(tmsize_t s)
  255. {
  256. 	return (malloc((size_t) s));
        ^
  257. }
  258. 

libtiff/tif_unix.c:257:1: return from a call to _TIFFmalloc
  255. {
  256. 	return (malloc((size_t) s));
  257. }
       ^
  258. 
  259. void

tools/tiffcp.c:1115:7: Taking false branch
1113. 	inbuf = _TIFFmalloc(scanlinesizein);
1114. 	outbuf = _TIFFmalloc(scanlinesizeout);
1115. 	if (!inbuf || !outbuf)
            ^
1116. 		return 0;
1117. 	_TIFFmemset(inbuf, 0, scanlinesizein);

tools/tiffcp.c:1115:17: Taking true branch
1113. 	inbuf = _TIFFmalloc(scanlinesizein);
1114. 	outbuf = _TIFFmalloc(scanlinesizeout);
1115. 	if (!inbuf || !outbuf)
                      ^
1116. 		return 0;
1117. 	_TIFFmemset(inbuf, 0, scanlinesizein);
