[CONC-497] Memory Leak found with LSan in ma_net.c Created: 2020-09-11 Updated: 2022-01-11 Resolved: 2021-03-02 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 3.0.6, 3.1.10 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Animesh Soni | Assignee: | Richard Stracke |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos 7 docker image |
||
| Description |
|
I filed a ticket for this: https://jira.mariadb.org/browse/CONC-495 Can someone please answer my question regarding how the leak was fixed? And what triggers the leak?
Issue: 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: Direct leak of 102 byte(s) in 6 object(s) allocated from:
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-11-11 ] |
|
What is wrong with previous fix for |