Commit d253b27
committed
MDEV-38838 Memory loss in CONNECT from handler::ha_rnd_init
This was a leak in unixODBC 2.3.14 where a cache was allocated
but not returned. The LD_PRELOAD is so the resolution will be
aware of the resolution for save_ini_cache that caused the leak.
Alterates considered:
1. __clear_ini_cache in libodbcinst (2.3.12+) is an interface,
for which there is no header define. A CMake would need to
do full compile and link to check its existance. Workable,
just wanted a simplier solution. It looked like it shoud be a
better interface in unixODBC.
2. could skip asan tests on CONNECT/ODBC, but this is skipping
coverage we want.1 parent 8721a00 commit d253b27
2 files changed
Lines changed: 48 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
14 | 58 | | |
15 | 59 | | |
16 | 60 | | |
0 commit comments