]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsprogs: fix freeing bitmap in allocation error path
authorLukas Czerner <lczerner@redhat.com>
Mon, 21 Mar 2011 10:13:41 +0000 (11:13 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 8 May 2011 22:06:30 +0000 (18:06 -0400)
commitba7cb5d9d7a9415ccb611e781a3832be7259622f
tree072b7a849ed0943705653680aaad9b71f7be726c
parentb18c5fd51e829e5fb1a434604d4373409379744b
e2fsprogs: fix freeing bitmap in allocation error path

In ext2fs_alloc_generic_bmap() error path, when new bitmap allocation
fails ext2fs_generic_bitmap should be freed, however in current state it
first frees ext2fs_generic_bitmap and then
ext2fs_generic_bitmap->description which is wrong. This commit fix the
free ordering.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/gen_bitmap64.c