Fixed some memory leaks in various error paths.
1 file changed