If I write some XS code with a hash that I never expect to return to perl, do I need to free it? If so, how?
The closest I came up with hv_undef, but this only clears the contents of the hash, and not the hash itself, from what I understand.
HV* hash = newHV(); ... use the hash ... hv_undef(hash);
memory-leaks perl perl-xs
Eugene marcotte
source share