[CDRIVER-4452] Valgrind memory leak in bson_append_document Created: 08/Aug/22 Updated: 27/Oct/23 Resolved: 09/Aug/22 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | BSON |
| Affects Version/s: | 1.22.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | iulian | Assignee: | Ezra Chung |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
| Comments |
| Comment by iulian [ 09/Aug/22 ] | |||||||||||||||||||||||||
|
Hello. based on your example i have tested with basic and stream builder and i can't get the memory leak to appear(if the last line is commented out). I believe that i release the ownership somewhere deeper (as you have showed in the example). I think yo can close the jira. Thank you. | |||||||||||||||||||||||||
| Comment by Ezra Chung [ 08/Aug/22 ] | |||||||||||||||||||||||||
|
Hello, tzulea. Thank you for this report. Can you please provide a minimum example that reproduces this behavior?
I am only able to coerce the valgrind memory leak report exactly as you described by manually releasing ownership of the internal data of the resulting document and allowing it to leak. Can you please confirm the leak is not due to user error? |