Date: Sat, 31 Mar 2018 15:06:14 +0000 (UTC) From: "Alexander V. Chernikov" <melifaro@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r331844 - head/sbin/route Message-ID: <201803311506.w2VF6EUJ024922@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: melifaro Date: Sat Mar 31 15:06:14 2018 New Revision: 331844 URL: https://svnweb.freebsd.org/changeset/base/331844 Log: Fix memory leaks in route(8). Submitted by: Tom Rix (trix_juniper.net) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D9676 Modified: head/sbin/route/route.c Modified: head/sbin/route/route.c ============================================================================== --- head/sbin/route/route.c Sat Mar 31 15:04:41 2018 (r331843) +++ head/sbin/route/route.c Sat Mar 31 15:06:14 2018 (r331844) @@ -523,6 +523,7 @@ retry: printf("done\n"); } } + free(buf); return (error); } @@ -1439,6 +1440,7 @@ retry2: rtm = (struct rt_msghdr *)(void *)next; print_rtmsg(rtm, rtm->rtm_msglen); } + free(buf); } static void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803311506.w2VF6EUJ024922>