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

tools/fax2tiff.c:358:1: start of procedure copyFaxFile()
356. }
357. 
358. int
     ^
359. copyFaxFile(TIFF* tifin, TIFF* tifout)
360. {

tools/fax2tiff.c:362:20: Condition is true
360. {
361. 	uint32 row;
362. 	uint32 linesize = TIFFhowmany8(xsize);
                        ^
363. 	uint16 badrun;
364. 	int ok;

tools/fax2tiff.c:362:2: 
360. {
361. 	uint32 row;
362. 	uint32 linesize = TIFFhowmany8(xsize);
      ^
363. 	uint16 badrun;
364. 	int ok;

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

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

tools/fax2tiff.c:371:2: 
369. 		return (0);
370. 	}
371. 	tifin->tif_rawdata = _TIFFmalloc(tifin->tif_rawdatasize);
      ^
372. 	if (tifin->tif_rawdata == NULL) {
373. 		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:372:6: Taking false branch
370. 	}
371. 	tifin->tif_rawdata = _TIFFmalloc(tifin->tif_rawdatasize);
372. 	if (tifin->tif_rawdata == NULL) {
          ^
373. 		TIFFError(tifin->tif_name, "Not enough memory");
374. 		return (0);

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

tools/fax2tiff.c:380:2: 
378. 		return (0);
379. 	}
380. 	tifin->tif_rawcp = tifin->tif_rawdata;
      ^
381. 	tifin->tif_rawcc = tifin->tif_rawdatasize;
382. 

tools/fax2tiff.c:381:2: 
379. 	}
380. 	tifin->tif_rawcp = tifin->tif_rawdata;
381. 	tifin->tif_rawcc = tifin->tif_rawdatasize;
      ^
382. 
383. 	(*tifin->tif_setupdecode)(tifin);

tools/fax2tiff.c:383:2: Skipping __function_pointer__(): unresolved function pointer
381. 	tifin->tif_rawcc = tifin->tif_rawdatasize;
382. 
383. 	(*tifin->tif_setupdecode)(tifin);
      ^
384. 	(*tifin->tif_predecode)(tifin, (tsample_t) 0);
385. 	tifin->tif_row = 0;
