From 7a44d664c0d0d1ea5bc13930e79ff6cf0b0d95e8 Mon Sep 17 00:00:00 2001 From: blambert Date: Mon, 28 Apr 2014 12:48:36 +0000 Subject: [PATCH] fix memory leak ok reyk@ --- usr.sbin/snmpd/smi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/snmpd/smi.c b/usr.sbin/snmpd/smi.c index a18cefc9cd3..8acb6ca5aeb 100644 --- a/usr.sbin/snmpd/smi.c +++ b/usr.sbin/snmpd/smi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smi.c,v 1.14 2013/10/01 15:19:12 reyk Exp $ */ +/* $OpenBSD: smi.c,v 1.15 2014/04/28 12:48:36 blambert Exp $ */ /* * Copyright (c) 2007, 2008 Reyk Floeter @@ -518,6 +518,7 @@ smi_print_element(struct ber_element *root) free(p); goto fail; } + free(p); } break; case BER_TYPE_NULL: /* no payload */ -- 2.20.1