fix: memory leak at decode_with_fse

This commit is contained in:
Alex Duan 2023-09-24 23:45:22 +08:00
parent 995cd36d8d
commit c927f8c7fb
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ void decode_with_fse(int *type, size_t dataSeriesLength, unsigned int intervals,
{
// all zeros
memset((void *)type, 0, sizeof(int) * dataSeriesLength);
free(tp_code);
return;
}
size_t fse_size = FSE_decompress(tp_code, dataSeriesLength, FseCode, FseCode_size);