//
// policy_data_free from 0x84b8b4 to 0x84b914 (96 bytes)
//
// 12 xrefs:
// > policy_cache_free @ 0x84b4f4
// > policy_cache_set @ 0x84b664
// > policy_cache_set @ 0x84b798
// > policy_cache_set_mapping @ 0x84bb18
// > X509_policy_check @ 0x84c01c
// > X509_policy_check @ 0x84c2f8
// > X509_policy_check @ 0x84c7e4
// > ??> @ 0x6852c
// > policy_cache_free @ 0x84b500
// > policy_cache_set @ 0x84b680
// > X509_policy_tree_free @ 0x84bc24
// > ??> @ 0xab8804
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall policy_data_free(void *a1)
{
if ( a1 )
{
ASN1_OBJECT_free(*((_DWORD **)a1 + 1));
if ( (*(_DWORD *)a1 & 4) == 0 )
OPENSSL_sk_pop_free(*((_DWORD *)a1 + 2), (void (__fastcall *)(int))POLICYQUALINFO_free);
OPENSSL_sk_pop_free(*((_DWORD *)a1 + 3), (void (__fastcall *)(int))ASN1_OBJECT_free);
CRYPTO_free(a1, (int)"crypto/x509v3/pcy_data.c", 27);
}
}