Fix memory leaks in phalcon_role_adapter_memory_check_inheritance