New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tlstran_pipe_stop should free cparam #755
Conversation
Signed-off-by: Jason Lee <lkyjason91@gmail.com>
5da0982
to
ee192e1
Compare
Thank you for your contribution! But we usually do frees in pipe_fini not pipe_stop. We will appreciate it if you can move all these to tlstran_pipe_fini, just like what we do in tcptran_pipe_fini. Or should I do it for you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better do this in pipe_fini
Signed-off-by: Jason Lee <lkyjason91@gmail.com>
@OdyWayne moved to pipe_fini :) |
Some modification we did on broker_tcp needs to be synced to broker_tls |
well done |
Thank you @OdyWayne |
fixes #1519 Several memleaks in TLS
NanoMQ issue: nanomq/nanomq#1519
p->tcp_cparam that is allocated in tlstran_pipe_nego_cb is not freed by tlstran_pipe_stop, instead the variable is directly set to NULL resulting in memory leak.