From 3cb8bc364440c5d50173441d8e5f253f17df3701 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Thu, 14 Aug 2008 03:48:43 +0000 Subject: [PATCH] Make sure to free an allocated mbuf on failure path. --- sys/arch/sgimips/mace/if_mec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/sgimips/mace/if_mec.c b/sys/arch/sgimips/mace/if_mec.c index 1fd55bba608a..b95b4c4daf44 100644 --- a/sys/arch/sgimips/mace/if_mec.c +++ b/sys/arch/sgimips/mace/if_mec.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_mec.c,v 1.29 2008/08/14 03:43:50 tsutsui Exp $ */ +/* $NetBSD: if_mec.c,v 1.30 2008/08/14 03:48:43 tsutsui Exp $ */ /*- * Copyright (c) 2004 Izumi Tsutsui. All rights reserved. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_mec.c,v 1.29 2008/08/14 03:43:50 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_mec.c,v 1.30 2008/08/14 03:48:43 tsutsui Exp $"); #include "opt_ddb.h" #include "bpfilter.h" @@ -935,6 +935,7 @@ mec_start(struct ifnet *ifp) printf("%s: unable to load TX buffer, " "error = %d\n", device_xname(sc->sc_dev), error); + m_freem(m); break; } }