From: blambert Date: Mon, 28 Apr 2014 12:48:36 +0000 (+0000) Subject: fix memory leak X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7a44d664c0d0d1ea5bc13930e79ff6cf0b0d95e8;p=openbsd fix memory leak ok reyk@ --- 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 */