summaryrefslogtreecommitdiff
path: root/e2fsprogs/ext2fs/imager.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/ext2fs/imager.c')
-rw-r--r--e2fsprogs/ext2fs/imager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/e2fsprogs/ext2fs/imager.c b/e2fsprogs/ext2fs/imager.c
index 00eb717..ece66fc 100644
--- a/e2fsprogs/ext2fs/imager.c
+++ b/e2fsprogs/ext2fs/imager.c
@@ -371,7 +371,6 @@ errcode_t ext2fs_image_bitmap_read(ext2_filsys fs, int fd, int flags)
retval = 0;
errout:
- if (buf)
- free(buf);
+ free(buf);
return (retval);
}