]> sigrok.org Git - libsigrok.git/commitdiff
tcp: Fix memory leak in sr_tcp_dev_inst_free()
authorMarc Schink <redacted>
Wed, 20 Mar 2024 08:12:41 +0000 (09:12 +0100)
committerSoeren Apel <redacted>
Sat, 17 Aug 2024 21:01:20 +0000 (23:01 +0200)
Signed-off-by: Marc Schink <redacted>
src/tcp.c

index 3a018c7c6f3cbd48c63318f906412a1d3b833018..fe8e24d8f0e3915db739b537390daeaa8d740bdb 100644 (file)
--- 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);
 }