bugfix: memleak
This commit is contained in:
@@ -246,6 +246,12 @@ static void session_ctx_free(struct session_ctx *ctx)
|
|||||||
{
|
{
|
||||||
if (ctx)
|
if (ctx)
|
||||||
{
|
{
|
||||||
|
if (ctx->session_addr)
|
||||||
|
{
|
||||||
|
free(ctx->session_addr);
|
||||||
|
ctx->session_addr = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (ctx->cmsg)
|
if (ctx->cmsg)
|
||||||
{
|
{
|
||||||
tfe_cmsg_destroy(ctx->cmsg);
|
tfe_cmsg_destroy(ctx->cmsg);
|
||||||
|
|||||||
Reference in New Issue
Block a user