Browse Source

usrloc: fix mem leak when closing expired TCP

CONN_EOF handler already decreases the reference counter for us
Camille Oudot 9 years ago
parent
commit
daa2509a58
1 changed files with 0 additions and 1 deletions
  1. 0 1
      modules/usrloc/urecord.c

+ 0 - 1
modules/usrloc/urecord.c

@@ -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;