mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Delete variables going out of scope
This commit is contained in:
parent
16a5f100cb
commit
bc78416f52
@ -607,9 +607,11 @@ int galileo_e1_dll_pll_veml_tracking_cc::save_matfile()
|
|||||||
catch (const std::ifstream::failure &e)
|
catch (const std::ifstream::failure &e)
|
||||||
{
|
{
|
||||||
std::cerr << "Problem reading dump file:" << e.what() << std::endl;
|
std::cerr << "Problem reading dump file:" << e.what() << std::endl;
|
||||||
|
delete[] abs_VE;
|
||||||
delete[] abs_E;
|
delete[] abs_E;
|
||||||
delete[] abs_P;
|
delete[] abs_P;
|
||||||
delete[] abs_L;
|
delete[] abs_L;
|
||||||
|
delete[] abs_VL;
|
||||||
delete[] Prompt_I;
|
delete[] Prompt_I;
|
||||||
delete[] Prompt_Q;
|
delete[] Prompt_Q;
|
||||||
delete[] PRN_start_sample_count;
|
delete[] PRN_start_sample_count;
|
||||||
@ -719,9 +721,11 @@ int galileo_e1_dll_pll_veml_tracking_cc::save_matfile()
|
|||||||
Mat_VarFree(matvar);
|
Mat_VarFree(matvar);
|
||||||
}
|
}
|
||||||
Mat_Close(matfp);
|
Mat_Close(matfp);
|
||||||
|
delete[] abs_VE;
|
||||||
delete[] abs_E;
|
delete[] abs_E;
|
||||||
delete[] abs_P;
|
delete[] abs_P;
|
||||||
delete[] abs_L;
|
delete[] abs_L;
|
||||||
|
delete[] abs_VL;
|
||||||
delete[] Prompt_I;
|
delete[] Prompt_I;
|
||||||
delete[] Prompt_Q;
|
delete[] Prompt_Q;
|
||||||
delete[] PRN_start_sample_count;
|
delete[] PRN_start_sample_count;
|
||||||
|
Loading…
Reference in New Issue
Block a user