On Sunday 08 January 2006 02:50, Junichi Uekawa wrote:
> Hi,
>
> > Running valgrind on a program that uses the sine.so plugin in this
> > package produces the following errors:
>
> Thanks for the patch.
>
> > This is due to the plugin allocating strings with strdup, but freeing
> > them with delete[]. The attached patch fixes this, using free() to free
> > the strings.
>
> Is there a real point in applying this change or is this just to appease
> valgrind ?
>
> regards,
>       junichi

It's mainly to keep valgrind quiet, but I guess there could be some platforms 
where using delete[] on malloced memory could crash.

Regards

Rob

-- 
Rob Walker <[EMAIL PROTECTED]>
http://www.tenfoot.org.uk


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to