kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit bb2d4903f25f9bb1b2541b90f9139217dc6b007d
parent 21a44589fc9f5be38edcc80286d26108d0e31818
Author: Joris Vink <joris@coders.se>
Date:   Wed, 10 Jul 2013 13:39:35 +0200

remove NETBUF_RETAIN, no longer needed

Diffstat:
includes/kore.h | 1-
src/net.c | 6++----
2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/includes/kore.h b/includes/kore.h @@ -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; diff --git a/src/net.c b/src/net.c @@ -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)