Allocation/free mismatch in base/import/oexpress/wabobject.cpp

VERIFIED FIXED

Status

SeaMonkey
MailNews: Address Book & Contacts
VERIFIED FIXED
13 years ago
13 years ago

People

(Reporter: David Gardiner, Assigned: standard8)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
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 warnings:

wabobject.cpp(438) : warning 278: Allocation/free mismatch: 'pTag' is allocated
with array new [], but deleted with scalar delete (see allocation at line 432 of
d:\mozilla\mozilla\mailnews\import\oexpress\wabobject.cpp). Destructors will not
be called.
problem occurs in function 'CWAB::GetListProperty'

wabobject.cpp(498) : warning 278: Allocation/free mismatch: 'pTag' is allocated
with array new [], but deleted with scalar delete (see allocation at line 476 of
d:\mozilla\mozilla\mailnews\import\oexpress\wabobject.cpp). Destructors will not
be called.
problem occurs in function 'CWAB::GetUserProperty'

Reproducible: Always
(Reporter)

Updated

13 years ago
Blocks: 283681
(Assignee)

Comment 1

13 years ago
A potential fix to this bug is incorporated in the patch on bug 283071, adding
dependency.
Depends on: 283071
(Assignee)

Updated

13 years ago
Assignee: sspitzer → bugzilla
(Assignee)

Comment 2

13 years ago
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
Last Resolved: 13 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.