Closed
Bug 44613
Opened 25 years ago
Closed 25 years ago
pr_Mac_LoadIndexedFragment leaks PRLibrary on failure
Categories
(NSPR :: NSPR, defect, P3)
Tracking
(Not tracked)
People
(Reporter: dbaron, Assigned: sdagley)
References
()
Details
(Keywords: memory-leak)
When pr_Mac_LoadIndexedFragment fails to load a library (there was an error
message about failing to load the PSMGlue library when I started up), a PRLibrary
object (20 bytes) is leaked. I think the last "goto unlock" in the function
should have a "delete newLib" right before it (within the "if (err != noErr)").
From leaksoup:
0x0A2E5AD0 [0] <void*> (20){20}
0x00000000
0x00000000
0x00000000
0x00000000
0x00000000
calloc
PR_Calloc
pr_Mac_LoadIndexedFragment
PR_LoadLibraryWithFlags
nsLocalFile::Load(PRLibrary**)
nsDll::Load()
nsNativeComponentLoader::SelfRegisterDll(nsDll*, const char*, int)
nsNativeComponentLoader::AutoRegisterComponent(int, nsIFile*, int*)
nsNativeComponentLoader::RegisterComponentsInDir(int, nsIFile*)
nsNativeComponentLoader::AutoRegisterComponents(int, nsIFile*)
nsComponentManagerImpl::AutoRegister(int, nsIFile*)
nsComponentManager::AutoRegister(int, nsIFile*)
nsViewerApp::AutoregisterComponents()
nsViewerApp::SetupRegistry()
nsViewerApp::Initialize(int, char**)
main
__NSInitialize(1BAC61C4)
Comment 2•25 years ago
|
||
Patrick Beard filed a bug report on the same bug,
so I'm going to mark this one as a duplicate.
*** This bug has been marked as a duplicate of 45432 ***
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•