Fix memory leak in syslog input. (tcp server)

Remove the client from the clients list when the connection is closed.
Merge pull request #704 from bernd/fix-syslog-input-memleak

Fix memory leak in syslog input. (tcp server)