Currently there is no way to safely free vm structure w/o fd leaking. Another function vm_destroy() offers destroying whereas in some cases vm needs to be opened (vm_open) and then closed (vm_close).
libvmm: add vm_close() to vmmapi library
It also adds BEGIN_DECLS and END_DECLS to satisfy binding
with c++ binaries.
Sponsored by vStack.