aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/ext2fs/dblist.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/ext2fs/dblist.c')
-rw-r--r--e2fsprogs/ext2fs/dblist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/e2fsprogs/ext2fs/dblist.c b/e2fsprogs/ext2fs/dblist.c
index 0cf5698fa..73313faf3 100644
--- a/e2fsprogs/ext2fs/dblist.c
+++ b/e2fsprogs/ext2fs/dblist.c
@@ -99,8 +99,7 @@ static errcode_t make_dblist(ext2_filsys fs, ext2_ino_t size, ext2_ino_t count,
fs->dblist = dblist;
return 0;
cleanup:
- if (dblist)
- ext2fs_free_mem(&dblist);
+ ext2fs_free_mem(&dblist);
return retval;
}