mirror of https://git.kore.io/kore.git
remove NETBUF_RETAIN, no longer needed
This commit is contained in:
parent
21a44589fc
commit
bb2d4903f2
|
@ -59,7 +59,6 @@
|
||||||
|
|
||||||
#define NETBUF_CALL_CB_ALWAYS 0x01
|
#define NETBUF_CALL_CB_ALWAYS 0x01
|
||||||
#define NETBUF_FORCE_REMOVE 0x02
|
#define NETBUF_FORCE_REMOVE 0x02
|
||||||
#define NETBUF_RETAIN 0x04
|
|
||||||
|
|
||||||
struct netbuf {
|
struct netbuf {
|
||||||
u_int8_t *buf;
|
u_int8_t *buf;
|
||||||
|
|
|
@ -199,10 +199,8 @@ handle:
|
||||||
(nb->flags & NETBUF_FORCE_REMOVE)) {
|
(nb->flags & NETBUF_FORCE_REMOVE)) {
|
||||||
TAILQ_REMOVE(&(c->recv_queue), nb, list);
|
TAILQ_REMOVE(&(c->recv_queue), nb, list);
|
||||||
|
|
||||||
if (!(nb->flags & NETBUF_RETAIN)) {
|
kore_mem_free(nb->buf);
|
||||||
kore_mem_free(nb->buf);
|
kore_mem_free(nb);
|
||||||
kore_mem_free(nb);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r != KORE_RESULT_OK)
|
if (r != KORE_RESULT_OK)
|
||||||
|
|
Loading…
Reference in New Issue