Closed Bug 13298 Opened 26 years ago Closed 26 years ago

MLK: nsProfile::GetProfileDir()

Categories

(Core Graveyard :: Profile: BackEnd, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bruce, Assigned: alecf)

References

Details

nsRegistry::GetString() allocates. Please nsCRT::free() it. [W] MLK: Memory leak of 4 bytes from 1 block allocated in PR_Malloc Distribution of leaked blocks 4 bytes from 1 block of 4 bytes (0x072c9fa0) allocation number 82417 Allocation location malloc [dbgheap.c:129] PR_Malloc [prmem.c:38] nsRegistry::GetString(DWORD,char const*,char * *) [nsRegistry.cpp:521] nsProfile::GetProfileDir(char const*,nsFileSpec *) [nsProfile.cpp:362] nsProfile::GetCurrentProfileDir(nsFileSpec *) [nsProfile.cpp:822] LocalStoreImpl::Init(void) [nsLocalStore.cpp:328] NS_NewLocalStore(nsILocalStore * *) [nsLocalStore.cpp:214] RDFFactoryImpl::CreateInstance(nsISupports *,nsID const&,void * *) [nsRDFFactory.cpp:247] nsComponentManagerImpl::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsComponentManager.cpp:1203] nsComponentManager::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsRepository.cpp:77] nsServiceManagerImpl::GetService(nsID const&,nsID const&,nsISupports * *,nsIShutdownListener *) [nsServiceManager.cpp:237] nsServiceManagerImpl::GetService(char const*,nsID const&,nsISupports * *,nsIShutdownListener *) [nsServiceManager.cpp:381] nsServiceManager::GetService(char const*,nsID const&,nsISupports * *,nsIShutdownListener *) [nsServiceManager.cpp:485] ServiceImpl::GetDataSource(char const*,nsIRDFDataSource * *) [nsRDFService.cpp:1023] XULDocumentImpl::EndLoad(void) [nsXULDocument.cpp:2066]
Blocks: 12696
Status: NEW → ASSIGNED
Will use nsCRT::free(). Started my new builds.
Taking all these bugs to be fixed appropriately.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
racham, I'm fixing this for you. Please look at my checkins and learn how to use nsXPIDLCString.
Status: RESOLVED → VERIFIED
dev bug
Component: Profile Manager → Profile Manager BackEnd
Moving all Profile Manager bugs to new Profile Manager Backend component. Profile Manager component to be deleted.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.