diff options
Diffstat (limited to 'usr.sbin/snmpd/trap.c')
-rw-r--r-- | usr.sbin/snmpd/trap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/snmpd/trap.c b/usr.sbin/snmpd/trap.c index d8784bd1ff0..126bf27f5f5 100644 --- a/usr.sbin/snmpd/trap.c +++ b/usr.sbin/snmpd/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.25 2015/11/21 13:09:47 reyk Exp $ */ +/* $OpenBSD: trap.c,v 1.26 2015/12/05 06:42:18 mmcc Exp $ */ /* * Copyright (c) 2008 Reyk Floeter <reyk@openbsd.org> @@ -138,8 +138,7 @@ trap_agentx(struct agentx_handle *h, struct agentx_pdu *pdu, int *idx, done: if (varbind != NULL) ber_free_elements(varbind); - if (v) - free(v); + free(v); *idx = x; return (ret); } |