diff --git a/os/include/os/packet_stream.h b/os/include/os/packet_stream.h index 9f6fe3aed..03c57c880 100644 --- a/os/include/os/packet_stream.h +++ b/os/include/os/packet_stream.h @@ -550,6 +550,12 @@ class Packet_stream_source : private Packet_stream_base _bulk_buffer_size); } + ~Packet_stream_source() + { + _packet_alloc->remove_range(_bulk_buffer_offset, + _bulk_buffer_size); + } + /** * Return the size of the bulk buffer. */