From 7e531a349952812637ade0405144a103cf26d6d5 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 30 Aug 2018 12:25:40 +0000 Subject: [PATCH] fix double free in mib_carpgroupget() error path ok claudio@ miko@ --- usr.sbin/snmpd/mib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.sbin/snmpd/mib.c b/usr.sbin/snmpd/mib.c index c4732fa858f..8cc556b0319 100644 --- a/usr.sbin/snmpd/mib.c +++ b/usr.sbin/snmpd/mib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mib.c,v 1.89 2018/06/04 18:05:18 gerhard Exp $ */ +/* $OpenBSD: mib.c,v 1.90 2018/08/30 12:25:40 jsg Exp $ */ /* * Copyright (c) 2012 Joel Knight @@ -2941,7 +2941,6 @@ mib_carpgroupget(u_int idx) } if (ioctl(s, SIOCGIFGLIST, (caddr_t)&ifgr) == -1) { log_warn("SIOCGIFGLIST"); - free(ifgr.ifgr_groups); goto err; } close(s); -- 2.20.1