From 723abc50989e187c98961ead5f8a9e686f5379ff Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 18 Jan 2018 11:24:04 +0100 Subject: [PATCH] wg: plug memleak in config error path Signed-off-by: Jason A. Donenfeld --- src/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.c b/src/config.c index 6590aaf..5ab6ece 100644 --- a/src/config.c +++ b/src/config.c @@ -310,6 +310,7 @@ static inline bool parse_allowedips(struct wgpeer *peer, struct wgallowedip **la } if (!parse_ip(new_allowedip, ip)) { + free(new_allowedip); free(saved_entry); free(mutable); return false;