From 49a09ca2b1f8e3e840716bd1978e820dbe9762ea Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Mon, 30 Oct 2023 03:30:05 -0400 Subject: [PATCH] lib: mgmt_msg: fix a valgrind memleak - Free the outbound stream on destroy. Signed-off-by: Christian Hopps --- lib/mgmt_msg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mgmt_msg.c b/lib/mgmt_msg.c index 70332bd5f3de..12432a06e2ca 100644 --- a/lib/mgmt_msg.c +++ b/lib/mgmt_msg.c @@ -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); }