So I guess manual management is the way to go.
I’m not sure I should start a new post.
Because I have related question with xs using swig.
How does those swig code that call C Function (that allocates either some memory or other resources that needs to be destroyed) be dealt with?
If there’s get_foo and delete_foo, one has to manually call delete_foo from Perl as well?