diff options
| author | wangmenglan <[email protected]> | 2023-05-26 18:54:59 +0800 |
|---|---|---|
| committer | wangmenglan <[email protected]> | 2023-05-26 18:54:59 +0800 |
| commit | 685e4ada9a0e155ddbb3547bdb8d04f33da8b3bb (patch) | |
| tree | 799e56aebc9c50bd0f5aae5f210f04235e060911 | |
| parent | d7cf27a0a1efa166bc66d9c46fb38d6ff436afe7 (diff) | |
bugfix: memleakv4.8.16-20230526
| -rw-r--r-- | common/src/tfe_packet_io.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/src/tfe_packet_io.cpp b/common/src/tfe_packet_io.cpp index 8895b62..e829e22 100644 --- a/common/src/tfe_packet_io.cpp +++ b/common/src/tfe_packet_io.cpp @@ -246,6 +246,12 @@ static void session_ctx_free(struct session_ctx *ctx) { if (ctx) { + if (ctx->session_addr) + { + free(ctx->session_addr); + ctx->session_addr = NULL; + } + if (ctx->cmsg) { tfe_cmsg_destroy(ctx->cmsg); |
