Whamcloud - gitweb
Merge branch 'maint' into next
[tools/e2fsprogs.git] / e2fsck / unix.c
index a6c8d25..7a8fce2 100644 (file)
@@ -869,6 +869,8 @@ static errcode_t PRS(int argc, char *argv[], e2fsck_t *ret_ctx)
                case 'L':
                        replace_bad_blocks++;
                case 'l':
+                       if (bad_blocks_file)
+                               free(bad_blocks_file);
                        bad_blocks_file = string_copy(ctx, optarg, 0);
                        break;
                case 'd':