This should make sure that the memory context is not destroyed before the memory pool, which is using the context. Related: RHEL-25386 ; Related: CVE-2023-50387