diff --git a/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp b/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp index 74d8f5d9251..8ed43746b42 100644 --- a/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp +++ b/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp @@ -84,7 +84,7 @@ NS_IMETHODIMP nsMsgMailboxParserStub::OnStatus(nsIURL* aURL, const PRUnichar* aM nsString str(aMsg); char* c = str.ToNewCString(); fputs(c, stdout); - free(c); + delete [] c; fputs("\n", stdout); return 0;