]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - lib/ext2fs/freefs.c
ext2fs: add multi-mount protection (INCOMPAT_MMP)
[thirdparty/e2fsprogs.git] / lib / ext2fs / freefs.c
index 52ff57089d21f537019e0a46546963dc256898dc..28c4132fd9d9d1177be7c8ce40b28dd27f07c5a8 100644 (file)
@@ -54,6 +54,11 @@ void ext2fs_free(ext2_filsys fs)
        if (fs->icache)
                ext2fs_free_inode_cache(fs->icache);
 
+       if (fs->mmp_buf)
+               ext2fs_free_mem(&fs->mmp_buf);
+       if (fs->mmp_cmp)
+               ext2fs_free_mem(&fs->mmp_cmp);
+
        fs->magic = 0;
 
        ext2fs_free_mem(&fs);