]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: properly free the bitmaps in read_bitmap()'s error/cleanup path
authorTheodore Ts'o <tytso@mit.edu>
Fri, 8 Nov 2019 14:49:51 +0000 (09:49 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 8 Nov 2019 14:49:51 +0000 (09:49 -0500)
commita2a8cec68c69583b8de5409ade3cd641c7d4cef7
treee0b3b2eac2999ecdc64c563f024b360d96a7ffa0
parent6dac306792b98ae9111e8da2b2f4341592812c5a
libext2fs: properly free the bitmaps in read_bitmap()'s error/cleanup path

Use ext2fs_free_{block,inode}_bitmaps() instead of ext2fs_free_mem()
to avoid some memory leaks if there is an error while calling
read_bitmaps().

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/rw_bitmaps.c