Free queued packet when closing
This commit is contained in:
parent
dff11bd027
commit
41630b0f03
1 changed files with 4 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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);
|
uc_close(&c->c);
|
||||||
ctimer_stop(&c->t);
|
ctimer_stop(&c->t);
|
||||||
|
if(c->buf != NULL) {
|
||||||
|
queuebuf_free(c->buf);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue