[SERVER-42736] Fix memory leak in PosixNSPR.cpp when PR_JoinThread() throws exception Created: 09/Aug/19  Updated: 08/Jan/24  Resolved: 15/Oct/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Bug Priority: Major - P3
Reporter: Arun Banala Assignee: ADAM Martin (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-42735 Fix memory leak in PosixNSPR.cpp when... Closed
Related
related to SERVER-46227 MozJSImplScope::kill() check for "cor... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Dev Tools 2019-08-26, Dev Tools 2019-09-09, Dev Tools 2019-09-23, Dev Tools 2019-10-07, Dev Tools 2019-10-21
Participants:
Linked BF Score: 45

 Description   

It looks like there is a memory leak in PosixNSPR.cpp. When thread->thread().join() throws an exception we are not deleting the memory held by thread pointer.



 Comments   
Comment by Githook User [ 14/Oct/19 ]

Author:

{'username': 'adamlsd', 'email': 'adam.martin@mongodb.com', 'name': 'ADAM Martin'}

Message: SERVER-42736 Remove PosixNSPR implementations.

We don't need these implementations as the mozjs code doesn't
call into them anymore. Therefore we don't have to either.
Branch: master
https://github.com/mongodb/mongo/commit/ac0b3c4052e88c6626b4bd3129d4190e2d0aa179

Generated at Thu Feb 08 05:01:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.