From 4ea9fb865032481616440b4e5f559b95678e9c82 Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 20 Jul 2018 20:33:29 +0000 Subject: [PATCH] fix mem leak: missing freeifaddrs --- usr.sbin/rad/frontend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rad/frontend.c b/usr.sbin/rad/frontend.c index d44701d7fde..afa4fb10859 100644 --- a/usr.sbin/rad/frontend.c +++ b/usr.sbin/rad/frontend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frontend.c,v 1.12 2018/07/20 17:55:09 bket Exp $ */ +/* $OpenBSD: frontend.c,v 1.13 2018/07/20 20:33:29 florian Exp $ */ /* * Copyright (c) 2018 Florian Obser @@ -838,8 +838,8 @@ get_interface_prefixes(struct ra_iface *ra_iface, struct ra_prefix_conf add_new_prefix_to_ra_iface(ra_iface, &sin6->sin6_addr, prefixlen, autoprefix); - } + freeifaddrs(ifap); } struct ra_prefix_conf* -- 2.20.1