[MDEV-11730] Memory leak in innodb.innodb_corrupt_bit Created: 2017-01-05  Updated: 2017-01-05  Resolved: 2017-01-05

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB, Storage Engine - XtraDB
Fix Version/s: 10.0.29, 10.1.21, 10.2.4

Type: Task Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: valgrind


 Description   

The function ha_innobase::prepare_inplace_alter_table() is failing to call mem_heap_free(heap) when it notices that a secondary index is corrupted.
The memory leak is noticed by AddressSanitizer when running the test innodb.innodb_corrupt_bit.



 Comments   
Comment by Marko Mäkelä [ 2017-01-05 ]

I accidentally created this as a task instead of bug.
The memory leak was introduced in 10.0.26, 10.1.15, 10.2.1 by the following:

commit c081c978a2c83b9dc9efa84414cf40232460987d
Merge: 1d21b221552 a482e76e65a
Author: Sergei Golubchik <serg@mariadb.org>
Date:   Tue Jun 21 14:11:02 2016 +0200
 
    Merge branch '5.5' into bb-10.0

Generated at Thu Feb 08 07:52:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.