Added missing memb_free in queuebuf.c

This commit is contained in:
Simon Duquennoy 2014-11-10 12:00:41 +01:00
parent 6ca95ebc0c
commit 928bb49855

View file

@ -366,6 +366,7 @@ queuebuf_new_from_packetbuf(void)
#else
if(buf->ram_ptr == NULL) {
PRINTF("queuebuf_new_from_packetbuf: could not queuebuf data\n");
memb_free(&bufmem, buf);
return NULL;
}
buframptr = buf->ram_ptr;