diff options
author | tracierenea <tracie.perez@mavs.uta.edu> | 2016-04-07 01:21:16 -0500 |
---|---|---|
committer | tracierenea <tracie.perez@mavs.uta.edu> | 2016-04-07 01:21:16 -0500 |
commit | 5abda7a5d3dec6d8dcd47d355248660564d2e56a (patch) | |
tree | 52b67de9243662a8708be77a1e6ddf2c6bf0b37a /gr-fec | |
parent | f825d6b6d96cbf22d5bf4c00de2cd79cb1b6e27a (diff) |
gr-fec: free memory used for the LDPC H matrix in the destructor
Diffstat (limited to 'gr-fec')
-rw-r--r-- | gr-fec/lib/ldpc_G_matrix_impl.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-fec/lib/ldpc_G_matrix_impl.cc b/gr-fec/lib/ldpc_G_matrix_impl.cc index f12b4e96af..0ea76f2ef4 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 */ |