REFERENCE
use-after-free
Default severity: error · Identifier: weavec::use-after-free
What it means
Section titled “What it means”A pointer (or any alias of it) is used after being passed to free. Note: freed here / freed here (through '<q>'). After a share release (RFC 0010): use of '<p>' after its reference was released, note reference released here.
How to resolve it
Section titled “How to resolve it”Move the final read before cleanup, or extend the lifetime so cleanup happens after every user has finished. Follow the release note: freeing an alias invalidates the original pointer too. Assigning NULL to one variable does not repair other dangling aliases. See your first check.