Closed Bug 429388 Opened 18 years ago Closed 18 years ago

vfychain.main leaks memory

Categories

(NSS :: Libraries, defect)

3.12
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alvolkov.bgs, Assigned: alvolkov.bgs)

Details

Attachments

(1 file)

Function main leaks memory allocated to keep data for certDir, progName, oidStr, revConfig and password.
Attachment #316100 - Flags: review?(nelson)
Comment on attachment 316100 [details] [diff] [review] Use PORT_Free to deallocate the memory. >+ if (progName) >+ PORT_Free(progName); >+ if (certDir) >+ PORT_Free(certDir); >+ if (oidStr) >+ PORT_Free(oidStr); >+ if (revConfig) >+ PORT_Free(revConfig); >+ if (password) >+ PORT_Free(password); PORT_Free checks its argument for NULL, making the checks added above redundant. I'd prefer not to have those redundant checks.
Comment on attachment 316100 [details] [diff] [review] Use PORT_Free to deallocate the memory. r+ once the redundant checks are removed.
Attachment #316100 - Flags: review?(nelson) → review+
Patch is integrated.
Status: NEW → RESOLVED
Closed: 18 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: