From: Marc Schink Date: Wed, 20 Mar 2024 08:12:41 +0000 (+0100) Subject: tcp: Fix memory leak in sr_tcp_dev_inst_free() X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8fbecb01b1d331e5505770584e094891554e2f04;p=libsigrok.git tcp: Fix memory leak in sr_tcp_dev_inst_free() Signed-off-by: Marc Schink --- diff --git a/src/tcp.c b/src/tcp.c index 3a018c7c..fe8e24d8 100644 --- a/src/tcp.c +++ b/src/tcp.c @@ -163,6 +163,7 @@ SR_PRIV void sr_tcp_dev_inst_free(struct sr_tcp_dev_inst *tcp) (void)sr_tcp_disconnect(tcp); g_free(tcp->host_addr); + g_free(tcp->tcp_port); g_free(tcp); }