issue21 Memory Leak in Database::register_variable_in_vm