Commit 412ee03
committed
Fix a memory leak on aborted InnoDB startup.
innodb_shutdown(), trx_sys_close(): Startup may be aborted between purge_sys and trx_sys creation. Therefore, purge_sys must be freed independently of trx_sys. innobase_start_or_create_for_mysql(): Remember to free purge_queue if it was not yet attached to purge_sys.1 parent d35aea5 commit 412ee03
2 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2206 | 2206 | | |
2207 | 2207 | | |
2208 | 2208 | | |
| 2209 | + | |
2209 | 2210 | | |
2210 | 2211 | | |
2211 | 2212 | | |
| |||
2280 | 2281 | | |
2281 | 2282 | | |
2282 | 2283 | | |
| 2284 | + | |
2283 | 2285 | | |
2284 | 2286 | | |
2285 | 2287 | | |
| |||
2796 | 2798 | | |
2797 | 2799 | | |
2798 | 2800 | | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
2799 | 2804 | | |
2800 | 2805 | | |
2801 | 2806 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | 1095 | | |
1100 | 1096 | | |
1101 | 1097 | | |
| |||
0 commit comments