Skip to content

Commit

Permalink
Fix bug: Forget to execute ustream_free on ustream_ssl
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed May 14, 2018
1 parent a480bdb commit 9b8ba13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/uwsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ static void uwsc_free(struct uwsc_client *cl)
shutdown(cl->sfd.fd.fd, SHUT_RDWR);
close(cl->sfd.fd.fd);
#if (UWSC_SSL_SUPPORT)
ustream_free(&cl->ussl.stream);
if (cl->ssl_ops && cl->ssl_ctx)
cl->ssl_ops->context_free(cl->ssl_ctx);
#endif
Expand Down

0 comments on commit 9b8ba13

Please sign in to comment.