aoe: fix the potential use-after-free problem in more places (CVE-2024-49982) | HOL Guard CVE