MLK: nsProfile::GetProfileDir()

VERIFIED FIXED in M11

Status

Core Graveyard
Profile: BackEnd
P3
normal
VERIFIED FIXED
19 years ago
2 years ago

People

(Reporter: Bruce Mitchener, Assigned: Alec Flett)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
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]

Updated

19 years ago
Blocks: 12696

Updated

19 years ago
Status: NEW → ASSIGNED

Comment 1

19 years ago
Will use nsCRT::free(). Started my new builds.
(Assignee)

Comment 2

19 years ago
Taking all these bugs to be fixed appropriately.
(Assignee)

Updated

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
(Assignee)

Comment 3

19 years ago
racham, I'm fixing this for you.
Please look at my checkins and learn how to use nsXPIDLCString.

Updated

19 years ago
Status: RESOLVED → VERIFIED

Comment 4

19 years ago
dev bug

Updated

18 years ago
Component: Profile Manager → Profile Manager BackEnd

Comment 5

18 years ago
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.