mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 12:40:35 +00:00
Fix memory deallocation
This commit is contained in:
parent
a9cc2d0eab
commit
8525782c52
@ -131,6 +131,12 @@ void galileo_e5_a_code_gen_complex_sampled(std::complex<float>* _dest, char _Sig
|
|||||||
{
|
{
|
||||||
_dest[(i + delay) % _samplesPerCode] = _code[i];
|
_dest[(i + delay) % _samplesPerCode] = _code[i];
|
||||||
}
|
}
|
||||||
|
if (_fs != _codeFreqBasis)
|
||||||
delete[] _code;
|
{
|
||||||
|
free(_code);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
delete[] _code;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user