fix memory leaks
check some bio api.