Closed Bug 44613 Opened 25 years ago Closed 25 years ago

pr_Mac_LoadIndexedFragment leaks PRLibrary on failure

Categories

(NSPR :: NSPR, defect, P3)

PowerPC
Mac System 8.5

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 45432

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)
Thanks David, I'll take a look at it.
Status: NEW → ASSIGNED
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
Verified dupe.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.