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;