From 300604eb85e95621f74036ef5e0fb40ccae41349 Mon Sep 17 00:00:00 2001 From: Gastd Date: Mon, 12 Feb 2018 03:04:27 -0200 Subject: [PATCH] Fix memory leak --- src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.cc b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.cc index e08481874..affd45952 100644 --- a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.cc +++ b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition.cc @@ -254,9 +254,6 @@ void pcps_acquisition::init() void pcps_acquisition::update_grid_doppler_wipeoffs() { - // Create the carrier Doppler wipeoff signals - d_grid_doppler_wipeoffs = new gr_complex*[d_num_doppler_bins]; - for (unsigned int doppler_index = 0; doppler_index < d_num_doppler_bins; doppler_index++) { d_grid_doppler_wipeoffs[doppler_index] = static_cast(volk_gnsssdr_malloc(d_fft_size * sizeof(gr_complex), volk_gnsssdr_get_alignment()));