]> git.meshlink.io Git - utcp/commitdiff
Fix a memory leak.
authorGuus Sliepen <guus@sliepen.org>
Sun, 29 Mar 2020 21:58:44 +0000 (23:58 +0200)
committerGuus Sliepen <guus@sliepen.org>
Sun, 29 Mar 2020 21:58:44 +0000 (23:58 +0200)
utcp.c

diff --git a/utcp.c b/utcp.c
index 0d102b4c7bcd063ff388209e7e8c1b9ff4c50fd3..f2caab7fac861eff4c22b8b15d913be6c86eaf5e 100644 (file)
--- a/utcp.c
+++ b/utcp.c
@@ -2144,6 +2144,7 @@ void utcp_exit(struct utcp *utcp) {
        }
 
        free(utcp->connections);
+       free(utcp->pkt);
        free(utcp);
 }