Closed Bug 283072 Opened 20 years ago Closed 19 years ago

Allocation/free mismatch in base/import/outlook/src/MapiApi.cpp

Categories

(SeaMonkey :: MailNews: Address Book & Contacts, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

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

References

Details

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:

MapiApi.cpp(1100) : warning 278: Allocation/free mismatch: 'pTag' is allocated
with array new [], but deleted with scalar delete (see allocation at line 1094
of d:\mozilla\mozilla\mailnews\import\outlook\src\MapiApi.cpp). Destructors will
not be called.
problem occurs in function 'CMapiApi::GetMapiProperty'

Reproducible: Always

Steps to Reproduce:
Blocks: 283681
A potential fix to this bug is incorporated in the patch on bug 283071, adding
dependency.
Depends on: 283071
Assignee: sspitzer → bugzilla
Timeless checked in the patch on bug 283071 that included the fix for this bug:
2005-03-29 09:19	timeless%mozdev.org 	mozilla/ mailnews/ import/ outlook/ src/
MapiApi.cpp 	1.28 	1/1 
2005-03-29 09:19	timeless%mozdev.org 	mozilla/ mailnews/ import/ oexpress/
nsOE5File.cpp 	1.18 	1/1 
2005-03-29 09:19	timeless%mozdev.org 	mozilla/ mailnews/ import/ oexpress/
WabObject.cpp 	1.12 	2/2 
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
verified via code inspection (that's the best I can do -- david, if you're still
experiencing this, please do reopen, thanks)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.