fix memory leak in adb