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

Sami Kerola
2013-07-07T19:55:51Z

disk-utils/mkfs.cramfs.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/disk-utils/mkfs.cramfs.c b/disk-utils/mkfs.cramfs.c
index fdc2cae..ebc8112 100644
--- a/disk-utils/mkfs.cramfs.c
+++ b/disk-utils/mkfs.cramfs.c
@@ -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");
}
--
1.8.3.2