[Issue 10116] Use-After-Free (CWE-416)