[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: |
|
||||||||||||||||
| 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: We don't need these implementations as the mozjs code doesn't |