diff options
author | Thomas Habets <thomas@habets.se> | 2020-08-30 13:26:41 +0100 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-09-22 21:48:57 +0200 |
commit | 9b4e6276897493c10067544b6469a0fa40d9402e (patch) | |
tree | 4f200bedd371255a2f970103af22180daeccfe8d /gr-zeromq/lib/push_sink_impl.cc | |
parent | ebf4b70e3fa9187c947b6b2f8352dafe36b7a77d (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.cc | 2 |
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 |