[CONCPP-41] Memory leak in the ResultSet Created: 2020-09-22 Updated: 2020-09-24 Resolved: 2020-09-23 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C++ |
| Component/s: | General |
| Affects Version/s: | 0.9.3 |
| Fix Version/s: | 0.9.4 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Lawrin Novitsky | Assignee: | Lawrin Novitsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Running very long testcase, that loops through all possible field types and checks results, fails with "bad allocation" at some point. Reducing number of tested types makes it pass(the same point). That would not happen, if that was some single erroneous allocation attempt. And test organized in the way, that memory is supposed to be released for each next type iteration. Another option can be, that some memory is not freed at right time, since seemingly all involved objects are in smart pointers |
| Comments |
| Comment by Lawrin Novitsky [ 2020-09-23 ] |
|
The fix is in the commit 5f3cfcd |