Commit 7ca8702
authored
Fix memory leaks in core shutdown path (#13027)
* Fix NetAccept leak in stop_accept() — delete objects after
stopping and clear naVec.
* Fix acceptor objects leak — delete SSLNextProtocolAccept,
ProtocolProbeSessionAccept, and plugin accepts in
stop_HttpProxyServer().
* Fix AIOCallback leak for API-originated AIO ops — add
from_api flag, delete callback in io_complete and on
error path.1 parent e16aa16 commit 7ca8702
5 files changed
Lines changed: 23 additions & 1 deletion
File tree
- include/iocore/aio
- src
- api
- iocore
- aio
- net
- proxy/http
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7067 | 7067 | | |
7068 | 7068 | | |
7069 | 7069 | | |
| 7070 | + | |
7070 | 7071 | | |
7071 | 7072 | | |
7072 | 7073 | | |
7073 | 7074 | | |
7074 | 7075 | | |
| 7076 | + | |
7075 | 7077 | | |
7076 | 7078 | | |
7077 | 7079 | | |
| |||
7106 | 7108 | | |
7107 | 7109 | | |
7108 | 7110 | | |
| 7111 | + | |
7109 | 7112 | | |
7110 | 7113 | | |
7111 | 7114 | | |
7112 | 7115 | | |
7113 | 7116 | | |
| 7117 | + | |
7114 | 7118 | | |
7115 | 7119 | | |
7116 | 7120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
| 172 | + | |
172 | 173 | | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
379 | 391 | | |
0 commit comments