diff options
author | Joel Knight <joel@cvs.openbsd.org> | 2013-09-07 04:43:22 +0000 |
---|---|---|
committer | Joel Knight <joel@cvs.openbsd.org> | 2013-09-07 04:43:22 +0000 |
commit | a82067e8a1a740e1d73a568a55ea48fff3142837 (patch) | |
tree | 2e8ea0c1044423e30a15fa90ec597b8a8b8c9570 /usr.sbin | |
parent | b3a833d1edc0eb442334908ff2058b475b3e59b5 (diff) |
Plug a memory leak when walking the pfTblAddrTable in PF-MIB
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/snmpd/pf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/pf.c b/usr.sbin/snmpd/pf.c index 544968e21c9..304b0a4db13 100644 --- a/usr.sbin/snmpd/pf.c +++ b/usr.sbin/snmpd/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.5 2013/03/04 14:00:31 bluhm Exp $ */ +/* $OpenBSD: pf.c,v 1.6 2013/09/07 04:43:21 joel Exp $ */ /* * Copyright (c) 2012 Joel Knight <joel@openbsd.org> @@ -431,6 +431,9 @@ pfta_get_nextaddr(struct pfr_astats *ras, int *tblidx) && (as->pfras_a.pfra_net == ras->pfras_a.pfra_net)) found = 1; } + + free(ba.pfrb_caddr); + ba.pfrb_caddr = NULL; } |