From e73a71be12acacc1ada1ba03d71cb81a7699fc86 Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Fri, 13 Dec 2013 11:50:43 +0100 Subject: [PATCH] packet stream: clean range allocator in destructor --- os/include/os/packet_stream.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/os/include/os/packet_stream.h b/os/include/os/packet_stream.h index 9f6fe3aed9..03c57c8804 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. */