CONN_EOF handler already decreases the reference counter for us
@@ -252,7 +252,6 @@ static inline int close_connection(int conid) {
msg[1] = CONN_EOF;
n = send_all(unix_tcp_sock, msg, sizeof(msg));
- tcpconn_put(con);
if (unlikely(n <= 0)){
LM_ERR("failed to send close request: %s (%d)\n", strerror(errno), errno);
return 0;