adapter_exit fix
memory leak