mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Fix memory leak introduced with merge of mysql 5.5.
MySQL introduced a class Deferred_log_events. This class keeps a pointer last_added. The code was keeping this pointer around even after the memory pointed to was freed, and later comparing the bogus pointer against other allocated memory. This is illegal, and can randomly produce false equal comparisons depending on whatever the malloc() subsystem decides to return.
This commit is contained in:
parent
3aef21344f
commit
166d4c1feb
1 changed files with 1 additions and 0 deletions
|
@ -1174,6 +1174,7 @@ void Deferred_log_events::rewind()
|
|||
freeze_size(&array);
|
||||
reset_dynamic(&array);
|
||||
}
|
||||
last_added= NULL;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue