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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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