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

tools/tiffcp.c:1049:1: start of procedure cpContig2SeparateByRow()
1047.  * Contig -> separate by row.
1048.  */
1049. DECLAREcpFunc(cpContig2SeparateByRow)
      ^
1050. {
1051. 	tsize_t scanlinesizein = TIFFScanlineSize(in);

tools/tiffcp.c:1051:2: 
1049. DECLAREcpFunc(cpContig2SeparateByRow)
1050. {
1051. 	tsize_t scanlinesizein = TIFFScanlineSize(in);
       ^
1052. 	tsize_t scanlinesizeout = TIFFScanlineSize(out);
1053. 	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:1052:2: 
1050. {
1051. 	tsize_t scanlinesizein = TIFFScanlineSize(in);
1052. 	tsize_t scanlinesizeout = TIFFScanlineSize(out);
       ^
1053. 	tdata_t inbuf;
1054. 	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:1060:2: 
1058. 	tsample_t s;
1059. 
1060. 	inbuf = _TIFFmalloc(scanlinesizein);
       ^
1061. 	outbuf = _TIFFmalloc(scanlinesizeout);
1062. 	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:1061:2: 
1059. 
1060. 	inbuf = _TIFFmalloc(scanlinesizein);
1061. 	outbuf = _TIFFmalloc(scanlinesizeout);
       ^
1062. 	if (!inbuf || !outbuf)
1063. 		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:1062:7: Taking false branch
1060. 	inbuf = _TIFFmalloc(scanlinesizein);
1061. 	outbuf = _TIFFmalloc(scanlinesizeout);
1062. 	if (!inbuf || !outbuf)
            ^
1063. 		return 0;
1064. 	_TIFFmemset(inbuf, 0, scanlinesizein);

tools/tiffcp.c:1062:17: Taking true branch
1060. 	inbuf = _TIFFmalloc(scanlinesizein);
1061. 	outbuf = _TIFFmalloc(scanlinesizeout);
1062. 	if (!inbuf || !outbuf)
                      ^
1063. 		return 0;
1064. 	_TIFFmemset(inbuf, 0, scanlinesizein);
