aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/ext2fs/mkdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/ext2fs/mkdir.c')
-rw-r--r--e2fsprogs/ext2fs/mkdir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/e2fsprogs/ext2fs/mkdir.c b/e2fsprogs/ext2fs/mkdir.c
index bf46e5050..c3c03711c 100644
--- a/e2fsprogs/ext2fs/mkdir.c
+++ b/e2fsprogs/ext2fs/mkdir.c
@@ -133,8 +133,7 @@ errcode_t ext2fs_mkdir(ext2_filsys fs, ext2_ino_t parent, ext2_ino_t inum,
ext2fs_inode_alloc_stats2(fs, ino, +1, 1);
cleanup:
- if (block)
- ext2fs_free_mem(&block);
+ ext2fs_free_mem(&block);
return retval;
}