MDEV-11730 Memory leak in innodb.innodb_corrupt_bit

Memory was leaked when ALTER TABLE is attempted on a table
that contains corrupted indexes.
The memory leak was reported by AddressSanitizer for the test
innodb.innodb_corrupt_bit. The leak was introduced into
MariaDB Server 10.0.26, 10.1.15, 10.2.1 by the following:

commit c081c978a2
Merge: 1d21b22155 a482e76e65
Author: Sergei Golubchik <serg@mariadb.org>
Date:   Tue Jun 21 14:11:02 2016 +0200

   Merge branch '5.5' into bb-10.0
This commit is contained in:
Marko Mäkelä 2017-01-05 20:13:34 +02:00
parent 9bf92706d1
commit f0c19b6a57
2 changed files with 2 additions and 2 deletions

View file

@ -3890,7 +3890,7 @@ check_if_can_drop_indexes:
index->name, TRUE);
my_error(ER_INDEX_CORRUPT, MYF(0), index_name);
DBUG_RETURN(true);
goto err_exit;
}
}
}

View file

@ -3904,7 +3904,7 @@ check_if_can_drop_indexes:
index->name, TRUE);
my_error(ER_INDEX_CORRUPT, MYF(0), index_name);
DBUG_RETURN(true);
goto err_exit;
}
}
}