Fix memory leaks in attach error paths.
2 files changed