Last Comment Bug 353741 - klocwork cascading memory leak in mpp_make_prime
: klocwork cascading memory leak in mpp_make_prime
Status: RESOLVED FIXED
: klocwork, mlk
Product: NSS
Classification: Components
Component: Libraries (show other bugs)
: trunk
: All All
: P2 normal (vote)
: 3.12
Assigned To: Alexei Volkov
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-21 21:26 PDT by Nelson Bolyard (seldom reads bugmail)
Modified: 2006-10-09 15:18 PDT (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---


Attachments
check function params before allocation (1.05 KB, patch)
2006-10-02 14:53 PDT, Alexei Volkov
nelson: review+
Details | Diff | Review

Description Nelson Bolyard (seldom reads bugmail) 2006-09-21 21:26:00 PDT
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.
Comment 1 Alexei Volkov 2006-10-02 14:53:19 PDT
Created attachment 240985 [details] [diff] [review]
check function params before allocation
Comment 2 Nelson Bolyard (seldom reads bugmail) 2006-10-02 15:10:45 PDT
Comment on attachment 240985 [details] [diff] [review]
check function params before allocation

r=nelson
Comment 3 Alexei Volkov 2006-10-09 15:18:56 PDT
/cvsroot/mozilla/security/nss/lib/freebl/mpi/mpprime.c,v  <--  mpprime.c
new revision: 1.23; previous revision: 1.22

Note You need to log in before you can comment on or make changes to this bug.