[CONC-495] Memory Leak found with LSan in ma_net.c Created: 2020-09-09 Updated: 2020-11-11 Resolved: 2020-09-10 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 3.0.6 |
| Fix Version/s: | 3.1.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Animesh Soni | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS7 docker image. |
||
| Description |
|
Hey our LSan run identified a memory leak in ma_net.c file. The memory allocated on line 311 is not freed when the function returns on line 340. You should add this code before returning "ma_net_real_write" on line 340:
This is what the LSan callstack looks like:
Can I get a better context on how we could be running into this issue? Are there any known workarounds? |
| Comments |
| Comment by Georg Richter [ 2020-09-10 ] |
|
fixed - rev. 64a421295322214c827441cf824091dc874ddc6a |
| Comment by Animesh Soni [ 2020-09-10 ] |
|
I just checked that the ma_net.c looks is the same for 3.0.6 and 3.1.10. Would you be able to provide context on what was triggering the leak and how was it fixed? Or provide me a link to another JIRA issue if there was one for the leak ? |
| Comment by Georg Richter [ 2020-11-11 ] |
|
It isn't the same: |