Skip to content

Commit

Permalink
lib: mgmt_msg: fix a valgrind memleak
Browse files Browse the repository at this point in the history
- Free the outbound stream on destroy.

Signed-off-by: Christian Hopps <[email protected]>
  • Loading branch information
choppsv1 committed Oct 30, 2023
1 parent 73914a3 commit 49a09ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mgmt_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ void mgmt_msg_destroy(struct mgmt_msg_state *ms)
mgmt_msg_reset_writes(ms);
if (ms->ins)
stream_free(ms->ins);
if (ms->outs)
stream_free(ms->outs);
free(ms->idtag);
}

Expand Down

0 comments on commit 49a09ca

Please sign in to comment.