klocwork cascading memory leak in mpp_make_prime

RESOLVED FIXED in 3.12

Status

P2
normal
RESOLVED FIXED
13 years ago
13 years ago

People

(Reporter: nelson, Assigned: alvolkov.bgs)

Tracking

({klocwork, memory-leak})

trunk
3.12
klocwork, memory-leak

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Klocwork ID 92773
File     nss/lib/freebl/mpi/mpprime.c
Function mpp_make_prime

Memory leak. Dynamic memory stored in 'sieve' allocated through function 'malloc' at line 432 is lost at line 435. Also there is one similar error on line 436.
(Assignee)

Comment 1

13 years ago
Created attachment 240985 [details] [diff] [review]
check function params before allocation
Assignee: nobody → alexei.volkov.bugs
Status: NEW → ASSIGNED
Attachment #240985 - Flags: review?(nelson)
Comment on attachment 240985 [details] [diff] [review]
check function params before allocation

r=nelson
Attachment #240985 - Flags: review?(nelson) → review+
(Reporter)

Updated

13 years ago
Priority: -- → P2
Target Milestone: --- → 3.12
(Assignee)

Comment 3

13 years ago
/cvsroot/mozilla/security/nss/lib/freebl/mpi/mpprime.c,v  <--  mpprime.c
new revision: 1.23; previous revision: 1.22
Status: ASSIGNED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.