Closed Bug 283067 Opened 19 years ago Closed 19 years ago

Allocation/free mismatch in base/search/src/nsMsgSearchAdapter.cpp

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: David.R.Gardiner, Assigned: mikael)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Running PREfast static code analysis gives the following warning:

nsmsgsearchadapter.cpp(739) : warning 283: Allocation/free mismatch:
'arbitraryHeader' is allocated with array new [], but deleted with scalar delete
(see allocation at line 543 of
d:\mozilla\mozilla\mailnews\base\search\src\nsmsgsearchadapter.cpp).
problem occurs in function 'nsMsgSearchAdapter::EncodeImapTerm'

Reproducible: Always

Steps to Reproduce:
and also this one too:

nsmsgsearchadapter.cpp(845) : warning 283: Allocation/free mismatch:
'totalEncoding' is allocated with array new [], but deleted with scalar delete
(see allocation at line 814 of
d:\mozilla\mozilla\mailnews\base\search\src\nsmsgsearchadapter.cpp).
problem occurs in function 'nsMsgSearchAdapter::EncodeImap'
Blocks: 283681
Attached patch fixSplinter Review
Assignee: sspitzer → mikael
Status: NEW → ASSIGNED
Attachment #179493 - Flags: superreview?(bienvenu)
Attachment #179493 - Flags: review?(2mozilla)
Attachment #179493 - Flags: review?(2mozilla) → review?(ducarroz)
Attachment #179493 - Flags: superreview?(bienvenu) → superreview+
Attachment #179493 - Flags: review?(ducarroz) → review?(mscott)
Attachment #179493 - Flags: review?(mscott) → review+
Checking in mailnews/base/search/src/nsMsgSearchAdapter.cpp;
/cvsroot/mozilla/mailnews/base/search/src/nsMsgSearchAdapter.cpp,v  <-- 
nsMsgSearchAdapter.cpp
new revision: 1.77; previous revision: 1.76
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Component: MailNews: Search → MailNews: Message Display
QA Contact: search
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: