whitespace and free
Fix memory leaks with event handling in conn.c