1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
mariadb/include
Monty 08e6431c8c Fixed memory leak introduces by a fix for MDEV-29932
The leaks are all 40 bytes and happens in this call stack when running
mtr vcol.vcol_syntax:

alloc_root()
...
Virtual_column_info::fix_and_check_exp()
...
Delayed_insert::get_local_table()

The problem was that one copied a MEM_ROOT from THD to a TABLE without
taking into account that new blocks would be allocated through the
TABLE memroot (and would thus be leaked).
In general, one should NEVER copy MEM_ROOT from one object to another
without clearing the copied memroot!

Fixed by, at end of get_local_table(), copy all new allocated objects
to client_thd->mem_root.

Other things:
- Removed references to MEM_ROOT::total_alloc that was wrongly left
  after a previous commit
2023-11-27 19:08:14 +02:00
..
2019-05-11 19:25:02 +03:00
2019-05-13 17:54:04 +03:00
2022-01-21 16:02:34 +01:00
2019-05-14 17:18:46 +03:00
2022-12-20 08:55:48 +11:00
2019-05-11 22:19:05 +03:00
2020-04-15 22:23:03 +04:00
2019-05-11 19:25:02 +03:00
2022-12-20 08:55:48 +11:00
2023-04-13 21:47:56 +08:00
2019-05-14 17:18:46 +03:00
2019-05-19 20:55:37 +02:00
2019-05-14 17:18:46 +03:00
2021-04-20 12:30:09 +03:00
2019-05-11 22:19:05 +03:00
2020-06-05 16:51:26 +03:00
2021-10-12 18:10:56 -04:00
2019-05-11 22:19:05 +03:00
2022-12-20 08:55:48 +11:00
2019-05-11 22:19:05 +03:00
2022-12-20 08:55:48 +11:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 22:19:05 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 21:29:06 +03:00
2022-12-20 10:23:42 +11:00
2019-05-11 22:19:05 +03:00
2019-05-13 17:54:04 +03:00
2020-08-20 09:12:16 +03:00
2022-04-06 08:59:09 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 21:29:06 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 22:19:05 +03:00
2023-01-03 16:10:02 +02:00
2023-01-03 16:10:02 +02:00
2019-05-13 17:54:04 +03:00
2019-05-19 20:55:37 +02:00
2019-05-11 22:19:05 +03:00
2020-10-29 13:38:38 +02:00
2019-05-11 21:29:06 +03:00
2019-05-14 17:18:46 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2022-12-20 08:55:48 +11:00
2019-05-11 21:29:06 +03:00
2019-12-13 17:30:37 +02:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 22:19:05 +03:00
2019-05-14 17:18:46 +03:00
2020-08-10 21:08:46 +03:00
2022-12-20 08:55:48 +11:00
2019-05-11 21:29:06 +03:00
2019-05-14 17:18:46 +03:00