Bug 65703

Summary: Leak of password string when creating Credential
Product: WebKit Reporter: Pratik Solanki <psolanki>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: psolanki
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Pratik Solanki 2011-08-04 10:49:56 PDT
In AuthenticationCF.cpp, we have

Credential core(CFURLCredentialRef cfCredential)
{
    ....

    return Credential(CFURLCredentialGetUsername(cfCredential), CFURLCredentialCopyPassword(cfCredential), persistence);
}

The password string returned from CFURLCredentialCopyPassword is a copy. We need to free it.
Comment 1 Pratik Solanki 2011-08-04 11:02:39 PDT
Actually I'll just do this as part of bug 65704.