Closed
Bug 1256270
Opened 10 years ago
Closed 10 years ago
Resource leaks in tls_connect.cc
Categories
(NSS :: Test, defect)
NSS
Test
Tracking
(firefox48 affected)
RESOLVED
INVALID
| Tracking | Status | |
|---|---|---|
| firefox48 | --- | affected |
People
(Reporter: franziskus, Assigned: franziskus)
References
(Blocks 1 open bug)
Details
(Keywords: coverity, Whiteboard: CID 1355460, CID 1355459)
Attachments
(1 file)
|
2.50 KB,
patch
|
Details | Diff | Splinter Review |
The constructor of TlsConnectTestBase initialises the following without freeing it in the deconstructor.
> client_(new TlsAgent("client", TlsAgent::CLIENT, mode_, ssl_kea_rsa)),
> server_(new TlsAgent("server", TlsAgent::SERVER, mode_, ssl_kea_rsa)),
| Assignee | ||
Comment 1•10 years ago
|
||
we should make to sure to call TearDown in case the object is destroyed before TearDown is called.
Assignee: nobody → franziskuskiefer
Attachment #8732783 -
Flags: review?(ekr)
Comment 2•10 years ago
|
||
Comment on attachment 8732783 [details] [diff] [review]
sslGtestTearDown.patch
Review of attachment 8732783 [details] [diff] [review]:
-----------------------------------------------------------------
TearDown() is automatically called by the framework
Attachment #8732783 -
Flags: review?(ekr)
| Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Eric Rescorla (:ekr) from comment #2)
> Comment on attachment 8732783 [details] [diff] [review]
> sslGtestTearDown.patch
>
> Review of attachment 8732783 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> TearDown() is automatically called by the framework
this is more about the logic (if initializing things in the constructor, we should free it in the destructor). But let's flag it false positive.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•