diff options
| author | Christian Hopps <chopps@labn.net> | 2023-10-30 03:30:05 -0400 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-10-30 04:03:12 -0400 | 
| commit | 49a09ca2b1f8e3e840716bd1978e820dbe9762ea (patch) | |
| tree | 20df185b0bb54bf9fe91208ea4b934fccebb970c /lib/mgmt_msg.c | |
| parent | 73914a3e730f5d8464d72a7228a060183ced8209 (diff) | |
lib: mgmt_msg: fix a valgrind memleak
- Free the outbound stream on destroy.
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/mgmt_msg.c')
| -rw-r--r-- | lib/mgmt_msg.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mgmt_msg.c b/lib/mgmt_msg.c index 70332bd5f3..12432a06e2 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);  }  | 
