tools/fax2tiff.c:387: error: Memory Leak
  memory dynamically allocated by call to `_TIFFmalloc()` at line 375, column 23 is not reachable after line 387, column 2.

tools/fax2tiff.c:362:1: start of procedure copyFaxFile()
360. }
361. 
362. int
     ^
363. copyFaxFile(TIFF* tifin, TIFF* tifout)
364. {

tools/fax2tiff.c:366:20: Condition is true
364. {
365. 	uint32 row;
366. 	uint32 linesize = TIFFhowmany8(xsize);
                        ^
367. 	uint16 badrun;
368. 	int ok;

tools/fax2tiff.c:366:2: 
364. {
365. 	uint32 row;
366. 	uint32 linesize = TIFFhowmany8(xsize);
      ^
367. 	uint16 badrun;
368. 	int ok;

tools/fax2tiff.c:370:2: Skipping __function_pointer__(): unresolved function pointer
368. 	int ok;
369. 
370. 	tifin->tif_rawdatasize = (tmsize_t)TIFFGetFileSize(tifin);
      ^
371. 	if (tifin->tif_rawdatasize == 0) {
372. 		TIFFError(tifin->tif_name, "Empty input file");

tools/fax2tiff.c:371:6: Taking false branch
369. 
370. 	tifin->tif_rawdatasize = (tmsize_t)TIFFGetFileSize(tifin);
371. 	if (tifin->tif_rawdatasize == 0) {
          ^
372. 		TIFFError(tifin->tif_name, "Empty input file");
373. 		return (0);

tools/fax2tiff.c:375:2: 
373. 		return (0);
374. 	}
375. 	tifin->tif_rawdata = _TIFFmalloc(tifin->tif_rawdatasize);
      ^
376. 	if (tifin->tif_rawdata == NULL) {
377. 		TIFFError(tifin->tif_name, "Not enough memory");

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)

tools/fax2tiff.c:376:6: Taking false branch
374. 	}
375. 	tifin->tif_rawdata = _TIFFmalloc(tifin->tif_rawdatasize);
376. 	if (tifin->tif_rawdata == NULL) {
          ^
377. 		TIFFError(tifin->tif_name, "Not enough memory");
378. 		return (0);

tools/fax2tiff.c:380:7: Taking false branch
378. 		return (0);
379. 	}
380. 	if (!ReadOK(tifin, tifin->tif_rawdata, tifin->tif_rawdatasize)) {
           ^
381. 		TIFFError(tifin->tif_name, "Read error at scanline 0");
382. 		return (0);

tools/fax2tiff.c:384:2: 
382. 		return (0);
383. 	}
384. 	tifin->tif_rawcp = tifin->tif_rawdata;
      ^
385. 	tifin->tif_rawcc = tifin->tif_rawdatasize;
386. 

tools/fax2tiff.c:385:2: 
383. 	}
384. 	tifin->tif_rawcp = tifin->tif_rawdata;
385. 	tifin->tif_rawcc = tifin->tif_rawdatasize;
      ^
386. 
387. 	(*tifin->tif_setupdecode)(tifin);

tools/fax2tiff.c:387:2: Skipping __function_pointer__(): unresolved function pointer
385. 	tifin->tif_rawcc = tifin->tif_rawdatasize;
386. 
387. 	(*tifin->tif_setupdecode)(tifin);
      ^
388. 	(*tifin->tif_predecode)(tifin, (tsample_t) 0);
389. 	tifin->tif_row = 0;
