Deallocation of a pointer not malloced

Venkatram Vundavalli <[email protected]>
Newsgroups gmane.comp.lib.icu.c++.support,gmane.comp.lib.icu.general
Message-ID <7D5800A5B6E26644B2EB7A862856B0D40A9F9423@SARASWATI>
Hi,
I was using UnicodeString in Mac OS X(10.2.6) using CodeWarrior(8.3). ICU
package was compiled using GCC compiler. I am using the dynamic lib in my
sample program created in CodeWarrior project.
When ever UnicodeString is destroyed, I am getting the following message.

 *** malloc[1015]: Deallocation of a pointer not malloced: 0xbffffd30; This
could be a double free(), or free() called with the middle of an allocated
block; Try setting environment variable MallocHelp to see tools to help
debug

This message is appearing even UnicodeString is created using default
constructor on simple console application(created in CodeWarrior).
UnicodeString, for memory allocation and release, uses C APIs
uprv_malloc()(uses malloc() ) and  uprv_free()(uses free()). My guess is
this message is coming from uprv_free(). 
This problem is not occurring in case of Windows. Pl. suggest how to avoid
this warning.
thanks,
Venkat


 <<Venkatram Vundavalli.vcf>>
Venkatram Vundavalli.vcf (application/octet-stream, 414 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.