Skip to content

Commit

Permalink
Merge pull request #249 from openziti/fix-channel-memleak
Browse files Browse the repository at this point in the history
fix memory leak
  • Loading branch information
ekoby authored Mar 10, 2021
2 parents f1f5fa8 + 1e629eb commit 07330f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ static void reconnect_cb(uv_timer_t *t) {

ch->state = Connecting;

uv_mbed_free(&ch->connection);
uv_mbed_init(ch->loop, &ch->connection, ch->connection.tls);
ch->connection.data = ch;
CH_LOG(DEBUG, "connecting to %s:%d", ch->host, ch->port);
Expand Down

0 comments on commit 07330f5

Please sign in to comment.