Open
Bug 1226002
Opened 9 years ago
Updated 6 months ago
Memory leaks in ssl_gtest support classes
Categories
(NSS :: Test, defect, P3)
NSS
Test
Tracking
(firefox45 affected)
NEW
Tracking | Status | |
---|---|---|
firefox45 | --- | affected |
People
(Reporter: jld, Unassigned)
References
Details
I found some memory leaks in the ssl_gtest I/O helper classes while trying to understand how they work with respect to lifetimes / pointers. Specifically, I was confused by DummyClose until I realized that it leaks both the PRFileDesc and the DummyPrSocket. The latter is a little tricky, because the DummyPrSocket could also be the peer_ of another still-live file. (Also, that should maybe be in the PRFileDesc::dtor callback and not the close method, if I understand correctly?) If it doesn't matter enough to fix, a comment that the leak is deliberate might be helpful. Also, Poller leaks everything in the timers_ queue; this is trivial to fix.
Updated•2 years ago
|
Severity: normal → S3
Updated•6 months ago
|
Severity: S3 → S4
Priority: -- → P3
You need to log in
before you can comment on or make changes to this bug.
Description
•