E3097 Safety Errors
Safety
pointer '%s' assigned address of inner-scope variable '%s'; the variable's memory is freed when the scope exits
When this occurs
This error is triggered when: pointer '%s' assigned address of inner-scope variable '%s'; the variable's memory is freed when the scope exits
Example error message
error[E3097]:
pointer '%s' assigned address of inner-scope variable '%s'; the variable's memory is freed when the scope exits
How to fix
Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.
Related errors
No related errors.