Closed Bug 505814 Opened 15 years ago Closed 15 years ago

add_nickname_entry leaks ce when it fails to allocate nickname

Categories

(NSS :: Libraries, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: timeless, Unassigned)

References

()

Details

(Keywords: coverity, memory-leak)

625         ce = new_cache_entry(arena, subjectList, PR_FALSE);
626         if (!ce) {
627             return PR_FAILURE;
628         }
629         nickname = nssUTF8_Duplicate(certNickname, arena);
630 if (!nickname) {
631 return PR_FAILURE;
This is an arena allocation.  
It gets freed when the arena is destroyed at
http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/pki/tdcache.c#864
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
oops
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.