From 41630b0f033e195e5ba8d36084f3432232850e27 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Sun, 25 Mar 2007 21:43:23 +0000 Subject: [PATCH] Free queued packet when closing --- core/net/rime/suc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/net/rime/suc.c b/core/net/rime/suc.c index 089a5a1b0..4ffba57a7 100644 --- a/core/net/rime/suc.c +++ b/core/net/rime/suc.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: suc.c,v 1.6 2007/03/20 12:27:32 adamdunkels Exp $ + * $Id: suc.c,v 1.7 2007/03/25 21:43:23 adamdunkels Exp $ */ /** @@ -69,6 +69,9 @@ suc_close(struct suc_conn *c) { uc_close(&c->c); ctimer_stop(&c->t); + if(c->buf != NULL) { + queuebuf_free(c->buf); + } } /*---------------------------------------------------------------------------*/ static void