|
From: Tom H. <th...@cy...> - 2004-12-16 13:39:11
|
In message <ecb...@ma...>
Mayuresh Nirhali <may...@gm...> wrote:
> With the VGs leak-check tool I am seeing following error,
>
> ==12381== 0 bytes in 1 blocks are definitely lost in loss record 2 of 509
> ==12381== at 0x1B904E5C: malloc (vg_replace_malloc.c:131)
> ==12381== by 0x1C80EB30: QRegion::clipRectangles(int&)
> ==12381== by 0x1C80CA69: QPainter::setClipping(bool)
>
> Can anyone explain how can there be a "0 bytes lost" error ??
> I think the tool is getting confused for some reason. Has anyone seen
> this before ???
Well malloc(0) without a corresponding free would do the trick.
The byte count shown by valgrind is the number of bytes the user
asked for and doesn't include any overhead.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|