fix for #301: plug memory leak in lua bindings -- bmayland @ leoninedev.com