diff options
Diffstat (limited to 'e2fsprogs/ext2fs/bmove.c')
-rw-r--r-- | e2fsprogs/ext2fs/bmove.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/e2fsprogs/ext2fs/bmove.c b/e2fsprogs/ext2fs/bmove.c index fb319f8c3..7e98c0fe5 100644 --- a/e2fsprogs/ext2fs/bmove.c +++ b/e2fsprogs/ext2fs/bmove.c | |||
@@ -119,10 +119,8 @@ errcode_t ext2fs_move_blocks(ext2_filsys fs, | |||
119 | * block move. | 119 | * block move. |
120 | */ | 120 | */ |
121 | if (flags & EXT2_BMOVE_GET_DBLIST) { | 121 | if (flags & EXT2_BMOVE_GET_DBLIST) { |
122 | if (fs->dblist) { | 122 | ext2fs_free_dblist(fs->dblist); |
123 | ext2fs_free_dblist(fs->dblist); | 123 | fs->dblist = NULL; |
124 | fs->dblist = NULL; | ||
125 | } | ||
126 | retval = ext2fs_init_dblist(fs, 0); | 124 | retval = ext2fs_init_dblist(fs, 0); |
127 | if (retval) | 125 | if (retval) |
128 | return retval; | 126 | return retval; |