[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
RowProtocol(base for Text- and BinRowProtocol classes didn't have virtual destructor defined.

Generated at Thu Feb 08 03:07:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.