From c2bd415382cf34c4735b6113188973a800f1e169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Thu, 15 Mar 2018 22:06:23 +0000 Subject: [PATCH] Sanitize memory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/bind.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bind.c b/src/bind.c index 53e123d..8556e7c 100644 --- a/src/bind.c +++ b/src/bind.c @@ -263,6 +263,7 @@ gt_bind(int argc, char **argv) perror("sendto(ctl)"); } + free(paths); res.ret = 0; } break; @@ -394,7 +395,9 @@ gt_bind(int argc, char **argv) perror("tun_set_persist"); } + mud_delete(mud); ctl_delete(ctl_fd); + free(buf); return 0; }