|
From: Mayuresh N. <may...@gm...> - 2004-12-16 13:29:51
|
Hi, 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 ??? Thanks in advance Mayuresh |
|
From: David E. <tw...@us...> - 2004-12-16 13:38:59
|
On Thu, 2004-12-16 at 05:29 -0800, Mayuresh Nirhali wrote:
> Hi,
>
>
> 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
Maybe the problem will go away when you fix the other 508 leaks... :-)
--
Regards,
-\- David Eriksson -/-
SynCE - http://synce.sourceforge.net
ScummVM - http://scummvm.sourceforge.net
Desquirr - http://desquirr.sourceforge.net
|
|
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/
|