summaryrefslogtreecommitdiff
path: root/gr-zeromq/lib/push_sink_impl.cc
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2020-08-30 13:26:41 +0100
committerMarcus Müller <marcus@hostalia.de>2020-09-22 21:48:57 +0200
commit9b4e6276897493c10067544b6469a0fa40d9402e (patch)
tree4f200bedd371255a2f970103af22180daeccfe8d /gr-zeromq/lib/push_sink_impl.cc
parentebf4b70e3fa9187c947b6b2f8352dafe36b7a77d (diff)
zeromq: Remove manual memory management
I believe this fixes a memory leak, as the thread objects were never deleted.
Diffstat (limited to 'gr-zeromq/lib/push_sink_impl.cc')
-rw-r--r--gr-zeromq/lib/push_sink_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-zeromq/lib/push_sink_impl.cc b/gr-zeromq/lib/push_sink_impl.cc
index fb3d3f323a..427bb8abb3 100644
--- a/gr-zeromq/lib/push_sink_impl.cc
+++ b/gr-zeromq/lib/push_sink_impl.cc
@@ -41,7 +41,7 @@ int push_sink_impl::work(int noutput_items,
gr_vector_void_star& output_items)
{
// Poll with a timeout (FIXME: scheduler can't wait for us)
- zmq::pollitem_t itemsout[] = { { static_cast<void*>(*d_socket), 0, ZMQ_POLLOUT, 0 } };
+ zmq::pollitem_t itemsout[] = { { static_cast<void*>(d_socket), 0, ZMQ_POLLOUT, 0 } };
zmq::poll(&itemsout[0], 1, d_timeout);
// If we can send something, do it