﻿# V585\. Attempt to release memory that stores the 'Foo' local variable\.

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:

```cpp
void Foo()
{
  int *p;
  ...
  free(&p);
}
```



The corrected code:

```cpp
void Foo()
{
  int *p;
  ...
  free(p);
}
```