如果我用一个我从未期望返回到perl的哈希编写一些XS代码,我是否必须释放它?如果是这样,怎么样?
我最接近的是hv_undef,但这只是清除哈希的内容,而不是我理解的哈希本身.
HV* hash = newHV(); ... use the hash ... hv_undef(hash);
perl memory-leaks perl-xs
memory-leaks ×1
perl ×1
perl-xs ×1