Analyzer detected an attempt to release the memory occupied by the local variable. Such errors could be produced in case of careless refactoring or as misprints.
Let's review an example of the incorrect code:
void Foo()
{
int *p;
...
free(&p);
}
The corrected code:
void Foo()
{
int *p;
...
free(p);
}
This diagnostic rule is classified as:
|
Was this page helpful?