Browse Source

fix memory leak

pull/1/head
clowwindy 12 years ago
parent
commit
ba77b00cc1
1 changed files with 1 additions and 0 deletions
  1. 1
      local.c

1
local.c

@ -418,6 +418,7 @@ static void accept_cb (EV_P_ ev_io *w, int revents)
server->remote = remote; server->remote = remote;
remote->server = server; remote->server = server;
connect(sockfd, res->ai_addr, res->ai_addrlen); connect(sockfd, res->ai_addr, res->ai_addrlen);
freeaddrinfo(res);
// listen to remote connected event // listen to remote connected event
ev_io_start(EV_A_ &remote->send_ctx->io); ev_io_start(EV_A_ &remote->send_ctx->io);
break; break;

Loading…
Cancel
Save