Bug #101735 | Memory leak in handle_alter_part_end | ||
---|---|---|---|
Submitted: | 24 Nov 2020 12:41 | Modified: | 24 Nov 2020 13:09 |
Reporter: | Zhou Xinjing (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
Version: | 5.7.32 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution, memory leak |
[24 Nov 2020 12:41]
Zhou Xinjing
[24 Nov 2020 12:48]
Zhou Xinjing
Fix from Tencent TXSQL Team. diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc index 474969a..573107e 100644 --- a/sql/sql_partition.cc +++ b/sql/sql_partition.cc @@ -6784,7 +6784,7 @@ static void reopen_locked_tables(THD *thd) bool handle_alter_part_end(ALTER_PARTITION_PARAM_TYPE *lpt, bool error) { - partition_info *part_info= lpt->part_info->get_clone(); + partition_info *part_info= NULL; THD *thd= lpt->thd; TABLE *table= lpt->table; DBUG_ENTER("handle_alter_part_end");
[24 Nov 2020 13:09]
MySQL Verification Team
Hello Zhou Xinjing, Thank you for the report and contribution. Please ensure to re-send the patch via that "contribution" tab. Otherwise we would not be able to accept it. regards, Umesh