[SERVER-83416] Fix memory leak in bulkWrite handleWouldChangeOwningShardError Created: 17/Nov/23  Updated: 20/Nov/23  Resolved: 20/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Kaitlin Mahar Assignee: Kaitlin Mahar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
is caused by SERVER-72793 Handle WouldChangeOwningShard for bul... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2023-11-27
Participants:
Linked BF Score: 160

 Description   

This method leaks the passed-in WCE because it now has ownership of the data backing the pointer (.release() is called here) but doesn't free it.



 Comments   
Comment by Githook User [ 20/Nov/23 ]

Author:

{'name': 'Kaitlin Mahar', 'email': 'kaitlin.mahar@mongodb.com', 'username': 'kmahar'}

Message: SERVER-83416 Fix memory leak in ClusterBulkWriteCmd::handleWouldChangeOwningShardError
Branch: master
https://github.com/mongodb/mongo/commit/fd9a15123423292099a74e9d231c715ae5adb6ad

Generated at Thu Feb 08 06:52:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.