mkfs.cramfs: argument to free() is a constant address [clang-analyzer]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2013-07-07 20:54:33 +01:00 committed by Karel Zak
parent ad20f0d883
commit a149ad39e8
1 changed files with 0 additions and 1 deletions

View File

@ -168,7 +168,6 @@ do_mmap(char *path, unsigned int size, unsigned int mode){
start = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, 0);
if (-1 == (int) (long) start) {
free(start);
close(fd);
err(MKFS_EX_ERROR, "mmap");
}