1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 20:20:35 +00:00

Fix memory deallocation

This commit is contained in:
Carles Fernandez 2019-03-02 02:48:26 +01:00
parent a9cc2d0eab
commit 8525782c52
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -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;
}
} }