commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 10/17: gr-fec: free memory used for the LDP


From: git
Subject: [Commit-gnuradio] [gnuradio] 10/17: gr-fec: free memory used for the LDPC H matrix in the destructor
Date: Thu, 14 Apr 2016 20:43:05 +0000 (UTC)

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

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 5abda7a5d3dec6d8dcd47d355248660564d2e56a
Author: tracierenea <address@hidden>
Date:   Thu Apr 7 01:21:16 2016 -0500

    gr-fec: free memory used for the LDPC H matrix in the destructor
---
 gr-fec/lib/ldpc_G_matrix_impl.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gr-fec/lib/ldpc_G_matrix_impl.cc b/gr-fec/lib/ldpc_G_matrix_impl.cc
index f12b4e9..0ea76f2 100644
--- a/gr-fec/lib/ldpc_G_matrix_impl.cc
+++ b/gr-fec/lib/ldpc_G_matrix_impl.cc
@@ -151,6 +151,7 @@ namespace gr {
       ldpc_G_matrix_impl::encode(unsigned char *outbuffer,
                                   const unsigned char *inbuffer) const
       {
+
         unsigned int index, k = d_k, n = d_n;
         gsl_matrix *s = gsl_matrix_alloc(k, 1);
         for(index = 0; index < k; index++) {
@@ -290,6 +291,7 @@ namespace gr {
       {
         // Call the gsl_matrix_free function to free memory.
         gsl_matrix_free(d_G_transp_ptr);
+        gsl_matrix_free(d_H_obj);
       }
     } /* namespace code */
   } /* namespace fec */



reply via email to

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