BoundsChecker shows incorrect memory leak message
Posted
by Prabhu
on Stack Overflow
See other posts from Stack Overflow
or by Prabhu
Published on 2010-04-27T11:01:34Z
Indexed on
2010/04/27
11:03 UTC
Read the original article
Hit count: 354
Hello All,
I'm using BoundsChecker9.1 with visual c++. I have a class
class Sample
{
public:
vector(AnotherClass) x;
}
. When I run my program the BoundsChecker tool reports all push_back() calls such as S.x.push_back(AnotherClass()) as memory leak.. Wouldn't all the elements in vector x will always be deallocated when the Sample class goes out of scope? If so, any idea about why BoundsChecker is showing them as memory leak?
© Stack Overflow or respective owner