summaryrefslogtreecommitdiff
path: root/lib/ext2fs/freefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ext2fs/freefs.c')
-rw-r--r--lib/ext2fs/freefs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ext2fs/freefs.c b/lib/ext2fs/freefs.c
index 28c4132f..1ad2d916 100644
--- a/lib/ext2fs/freefs.c
+++ b/lib/ext2fs/freefs.c
@@ -43,6 +43,8 @@ void ext2fs_free(ext2_filsys fs)
ext2fs_free_block_bitmap(fs->block_map);
if (fs->inode_map)
ext2fs_free_inode_bitmap(fs->inode_map);
+ if (fs->image_header)
+ ext2fs_free_mem(&fs->image_header);
if (fs->badblocks)
ext2fs_badblocks_list_free(fs->badblocks);