Commit f44e41d
committed
MDEV-33767: Memory leaks found in some tests run with --ps-protocol against a server built with the option -DWITH_PROTECT_STATEMENT_MEMROOT
Found memory leaks were introduced by the commit a896beb MDEV-18844 Implement EXCEPT ALL and INTERSECT ALL operations and caused by using a statement arena instead a runtime arena for allocation of objects having temporary life span by their nature. Aforementioned memory leaks were produced by running queries that typically use select with intersect, union or table values constructors. To fix these memory leaks use the runtime arena for allocation of Item_field objects used by set operations. Additionally, OOM handling added on allocation of aforementioned Item_field objects.1 parent 9f1019b commit f44e41d
1 file changed
+10
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1263 | 1263 | | |
1264 | 1264 | | |
1265 | 1265 | | |
1266 | | - | |
| 1266 | + | |
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
1273 | 1270 | | |
1274 | 1271 | | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | 1272 | | |
1279 | | - | |
| 1273 | + | |
1280 | 1274 | | |
1281 | 1275 | | |
1282 | 1276 | | |
1283 | 1277 | | |
1284 | 1278 | | |
1285 | | - | |
| 1279 | + | |
| 1280 | + | |
1286 | 1281 | | |
1287 | 1282 | | |
1288 | 1283 | | |
| |||
1762 | 1757 | | |
1763 | 1758 | | |
1764 | 1759 | | |
1765 | | - | |
1766 | | - | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
1767 | 1766 | | |
1768 | 1767 | | |
1769 | 1768 | | |
| |||
0 commit comments