diff options
author | Marcus Müller <marcus@hostalia.de> | 2014-06-18 11:11:47 +0200 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-06-26 14:46:56 -0400 |
commit | 3d88d3c7b5332850cad7c4935d81ed5adcfa705f (patch) | |
tree | 6c05b6eb31e233399257db7986d5ef91c5cda1ad | |
parent | 2b300b2ec3a588506dd7458f3e770a319ddf26fd (diff) |
crc32_async: fix memory leak; coverity 1215946
-rw-r--r-- | gr-digital/lib/crc32_async_bb_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-digital/lib/crc32_async_bb_impl.cc b/gr-digital/lib/crc32_async_bb_impl.cc index c5c51878fb..0c3bdf70cc 100644 --- a/gr-digital/lib/crc32_async_bb_impl.cc +++ b/gr-digital/lib/crc32_async_bb_impl.cc @@ -79,9 +79,10 @@ namespace gr { memcpy((void*)bytes_out, (const void*)bytes_in, pkt_len); memcpy((void*)(bytes_out + pkt_len), &crc, 4); // FIXME big-endian/little-endian, this might be wrong - pmt::pmt_t output = pmt::init_u8vector(pkt_len+4, bytes_out); + pmt::pmt_t output = pmt::init_u8vector(pkt_len+4, bytes_out); // this copies the values from bytes_out into the u8vector pmt::pmt_t msg_pair = pmt::cons(meta, output); message_port_pub(d_out_port, msg_pair); + volk_free(bytes_out); } void |