commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 18/23: crc32_async: fix memory leak; coveri


From: git
Subject: [Commit-gnuradio] [gnuradio] 18/23: crc32_async: fix memory leak; coverity 1215946
Date: Thu, 26 Jun 2014 19:54:45 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch master
in repository gnuradio.

commit 3d88d3c7b5332850cad7c4935d81ed5adcfa705f
Author: Marcus Müller <address@hidden>
Date:   Wed Jun 18 11:11:47 2014 +0200

    crc32_async: fix memory leak; coverity 1215946
---
 gr-digital/lib/crc32_async_bb_impl.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gr-digital/lib/crc32_async_bb_impl.cc 
b/gr-digital/lib/crc32_async_bb_impl.cc
index c5c5187..0c3bdf7 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]