From bc6d75a88d3c81358b3d28d09b94f0d25740c71d Mon Sep 17 00:00:00 2001 From: "jefft%netscape.com" Date: Sat, 29 May 1999 01:20:28 +0000 Subject: [PATCH] fixed unmatching memory free git-svn-id: svn://10.0.0.236/trunk@33206 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/imap/src/nsImapServerResponseParser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/mailnews/imap/src/nsImapServerResponseParser.cpp b/mozilla/mailnews/imap/src/nsImapServerResponseParser.cpp index f7026887a25..a3669d9fdf0 100644 --- a/mozilla/mailnews/imap/src/nsImapServerResponseParser.cpp +++ b/mozilla/mailnews/imap/src/nsImapServerResponseParser.cpp @@ -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);