Fixed 2 fd leaks in comm functions.