[CXX-1922] scoped_bson_t::steal() doesn't clear _is_initialized flag Created: 27/Jan/20 Updated: 28/Oct/23 Resolved: 19/Feb/20 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Samantha Ritter (Inactive) | Assignee: | Samantha Ritter (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
This problem showed up during testing of another feature. scoped_bson_t holds an internal flag to signal if it holds memory. When steal() is called, the scoped_bson_t releases its owned memory to the caller; it should clear its ownership flag, too. |
| Comments |
| Comment by Githook User [ 19/Feb/20 ] |
|
Author: {'name': 'samantharitter', 'username': 'samantharitter', 'email': 'samantha.ritter@10gen.com'}Message: |