Don't reference stack vars in cleanup callback
If you use the clar cleanup callback function, you can't pass a reference pointer to a stack allocated variable because when the cleanup function runs, the stack won't exist anymore.
Showing
Please
register
or
sign in
to comment