mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
fixed unmatching memory free
This commit is contained in:
parent
ea12e75566
commit
818691e714
@ -844,7 +844,7 @@ void nsImapServerResponseParser::mailbox(mailbox_spec *boxSpec)
|
||||
|
||||
char *convertedName =
|
||||
fServerConnection.CreateUtf7ConvertedString(boxname, PR_FALSE);
|
||||
PR_Free(boxname);
|
||||
PL_strfree(boxname);
|
||||
boxname = convertedName;
|
||||
}
|
||||
|
||||
@ -861,7 +861,8 @@ void nsImapServerResponseParser::mailbox(mailbox_spec *boxSpec)
|
||||
//if (boxSpec->connection && boxSpec->connection->GetCurrentUrl())
|
||||
boxSpec->connection->GetCurrentUrl()->AllocateCanonicalPath(boxname, boxSpec->hierarchySeparator, &boxSpec->allocatedPathName);
|
||||
boxSpec->connection->GetCurrentUrl()->GetHost(&boxSpec->hostName);
|
||||
PR_FREEIF( boxname);
|
||||
if (boxname)
|
||||
PL_strfree( boxname);
|
||||
// storage for the boxSpec is now owned by server connection
|
||||
fServerConnection.DiscoverMailboxSpec(boxSpec);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user