Closed Bug 353741 Opened 19 years ago Closed 19 years ago

klocwork cascading memory leak in mpp_make_prime

Categories

(NSS :: Libraries, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nelson, Assigned: alvolkov.bgs)

Details

(Keywords: klocwork, memory-leak)

Attachments

(1 file)

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: 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+
Priority: -- → P2
Target Milestone: --- → 3.12
/cvsroot/mozilla/security/nss/lib/freebl/mpi/mpprime.c,v <-- mpprime.c new revision: 1.23; previous revision: 1.22
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: