diff --git a/src/main.c b/src/main.c index 5e3f608..0dbfad5 100644 --- a/src/main.c +++ b/src/main.c @@ -591,6 +591,7 @@ static void unproc_thread(void) { u8_t expected_seq = next_seq(h5.last_seen_seq_from_host); if (hdr.is_reliable && hdr.seq != expected_seq) { LOG_ERR("Seq expected %u got %u. Drop packet", expected_seq, hdr.seq); + net_buf_unref(rx_buf); goto next; } h5.last_seen_seq_from_host = hdr.seq;