comparison ffstools/tiffs-rd/basics.c @ 253:475887e6b396

tiffs IVA: close the file descriptor after mmap
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 01 Feb 2014 22:22:07 +0000
parents 43642cf7c98c
children
comparison
equal deleted inserted replaced
252:e14609e9b907 253:475887e6b396
47 imgfile_offset); 47 imgfile_offset);
48 if (image == MAP_FAILED) { 48 if (image == MAP_FAILED) {
49 perror("mmap"); 49 perror("mmap");
50 exit(1); 50 exit(1);
51 } 51 }
52 close(fd);
52 } 53 }
53 54
54 cmd_blkhdr() 55 cmd_blkhdr()
55 { 56 {
56 int blk; 57 int blk;