Skip to content

Commit

Permalink
CPLZSTDCompressor(): fix memory leak (master only)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jul 25, 2021
1 parent e110d0f commit 546efd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gdal/port/cpl_compressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ static bool CPLZSTDCompressor (const void* input_data,
size_t ret = ZSTD_compressCCtx(ctx, *output_data, *output_size,
input_data, input_size,
level);
ZSTD_freeCCtx(ctx);
if( ZSTD_isError(ret) )
{
*output_size = 0;
Expand Down

0 comments on commit 546efd2

Please sign in to comment.