Closed Bug 95784 Opened 23 years ago Closed 23 years ago

memory leak in prlayer.c

Categories

(NSPR :: NSPR, defect, P2)

4.1.2
x86
Windows 2000

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jeff, Assigned: wtc)

References

Details

(Keywords: memory-leak)

Attachments

(1 file)

the identity_cache is not deleted.  consider adding the following function
to nsprpub/pr/src/io/prlayer.c and calling it from PR_Cleanup().

void _PR_CleanupLayerCache(void)
{
	if (identity_cache.ml)
	{
		PR_DestroyLock(identity_cache.ml);
		identity_cache.ml = NULL;
	}

	if (identity_cache.name)
	{
		int k;
		for (k=0; k<identity_cache.length; k++)
			if (identity_cache.name[k])
				PR_DELETE(identity_cache.name[k]);

		PR_DELETE(identity_cache.name);
		identity_cache.name = NULL;
	}
}
Adding keywords...thanks for the patch.
Severity: normal → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: mlk, patch, review
Fix checked in on the tip of NSPR.
Status: NEW → RESOLVED
Closed: 23 years ago
Priority: -- → P2
Resolution: --- → FIXED
Target Milestone: --- → 4.2
Blocks: 129902
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: