mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 02:53:55 +00:00
lib: mgmt_msg: fix a valgrind memleak
- Free the outbound stream on destroy.
Signed-off-by: Christian Hopps <chopps@labn.net>
(cherry picked from commit 49a09ca2b1
)
This commit is contained in:
parent
ed9b079a80
commit
26b8a39d8c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user