Closed Bug 1256270 Opened 10 years ago Closed 10 years ago

Resource leaks in tls_connect.cc

Categories

(NSS :: Test, defect)

defect
Not set
normal

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)

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)),
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 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)
(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.

Attachment

General

Created:
Updated:
Size: