summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Robertson <dan@dlrobertson.com>2018-12-18 18:02:16 +0000
committerMartin Braun <martin.braun@ettus.com>2018-12-18 16:56:00 -0800
commit1a898a1474ef0f78d02d26807f2b288a2fdcc1aa (patch)
tree4e1e008e29720b5f4e6fff4158a1986edba1f9a8
parent839eefa8083ae6ee52ad2871ac43ad5d364d29e6 (diff)
blocks: Fix tcp_server_sink_impl alloc-dealloc-mismatch
The d_buf member of tcp_server_sink_impl is currently typed as a shared pointer to a uint8_t but should be a shared pointer to a uint8_t[].
-rw-r--r--gr-blocks/lib/tcp_server_sink_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/lib/tcp_server_sink_impl.h b/gr-blocks/lib/tcp_server_sink_impl.h
index ea1aa3e84a..db26b705fe 100644
--- a/gr-blocks/lib/tcp_server_sink_impl.h
+++ b/gr-blocks/lib/tcp_server_sink_impl.h
@@ -43,7 +43,7 @@ namespace gr {
std::set<boost::asio::ip::tcp::socket *> d_sockets;
boost::asio::ip::tcp::acceptor d_acceptor;
- boost::shared_ptr<uint8_t> d_buf;
+ boost::shared_ptr<uint8_t[]> d_buf;
enum {
BUF_SIZE = 256 * 1024,
};