From: florian Date: Fri, 20 Jul 2018 20:33:29 +0000 (+0000) Subject: fix mem leak: missing freeifaddrs X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4ea9fb865032481616440b4e5f559b95678e9c82;p=openbsd fix mem leak: missing freeifaddrs --- 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*