Closed Bug 930398 Opened 11 years ago Closed 11 years ago

[Wifi][WPA-EAP] keystore doesn't free memory after getting cert.

Categories

(Firefox OS Graveyard :: Wifi, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: chucklee, Assigned: chucklee)

Details

Attachments

(1 file, 2 obsolete files)

Summary: [Wifi][WPA-EAP] keystore doesn't memory after getting cert. → [Wifi][WPA-EAP] keystore doesn't free memory after getting cert.
Attached patch Release cert after use. (obsolete) — Splinter Review
Attachment #826659 - Flags: review?(khuey)
Attachment #826659 - Flags: review?(brian)
Comment on attachment 826659 [details] [diff] [review]
Release cert after use.

Review of attachment 826659 [details] [diff] [review]:
-----------------------------------------------------------------

I think bsmith is more qualified to review this than I am.
Attachment #826659 - Flags: review?(khuey)
Comment on attachment 826659 [details] [diff] [review]
Release cert after use.

Review of attachment 826659 [details] [diff] [review]:
-----------------------------------------------------------------

This should be fine. You can also just use a ScopedCERTCertificate (see https://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/src/ScopedNSSTypes.h#81 ).
Attachment #826659 - Flags: review?(brian) → review+
Address comment 3
Attachment #826659 - Attachment is obsolete: true
Attachment #829083 - Flags: review?(dkeeler)
Comment on attachment 829083 [details] [diff] [review]
Use ScopedCERTCertificate instead.

Review of attachment 829083 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good.
Attachment #829083 - Flags: review?(dkeeler) → review+
Run try again for there are some failures seems not caused by this patch but I can't rerun : https://tbpl.mozilla.org/?tree=Try&rev=60cd9fd2f899
Looks like the patch that ran on try is different from the one checked in. In particular, that patch is missing '#include "ScopedNSSTypes.h"'.
Sorry I forgot to update the patch.
Attachment #829083 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/36e5d34076e5
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: