remove NETBUF_RETAIN, no longer needed

This commit is contained in:
Joris Vink 2013-07-10 13:39:35 +02:00
parent 21a44589fc
commit bb2d4903f2
2 changed files with 2 additions and 5 deletions

View File

@ -59,7 +59,6 @@
#define NETBUF_CALL_CB_ALWAYS 0x01
#define NETBUF_FORCE_REMOVE 0x02
#define NETBUF_RETAIN 0x04
struct netbuf {
u_int8_t *buf;

View File

@ -199,10 +199,8 @@ handle:
(nb->flags & NETBUF_FORCE_REMOVE)) {
TAILQ_REMOVE(&(c->recv_queue), nb, list);
if (!(nb->flags & NETBUF_RETAIN)) {
kore_mem_free(nb->buf);
kore_mem_free(nb);
}
kore_mem_free(nb->buf);
kore_mem_free(nb);
}
if (r != KORE_RESULT_OK)