From: Christian Hopps Date: Mon, 30 Oct 2023 07:30:05 +0000 (-0400) Subject: lib: mgmt_msg: fix a valgrind memleak X-Git-Tag: docker/9.0.2~15^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=5df84f283a23f5992197eaaf0933278349882e58;p=mirror%2Ffrr.git lib: mgmt_msg: fix a valgrind memleak - Free the outbound stream on destroy. Signed-off-by: Christian Hopps (cherry picked from commit 49a09ca2b1f8e3e840716bd1978e820dbe9762ea) --- diff --git a/lib/mgmt_msg.c b/lib/mgmt_msg.c index ee5c1008bd..1cd3240ece 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); }