Skip to content

Commit

Permalink
Merge pull request #1324 from alex/patch-1
Browse files Browse the repository at this point in the history
fix memory leak when get_compressed_data fails
  • Loading branch information
farindk authored Oct 7, 2024
2 parents 2374ade + 9cfedff commit c2837d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libheif/codecs/decoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ Decoder::decode_single_frame_from_compressed_data(const struct heif_decoding_opt

auto dataResult = get_compressed_data();
if (dataResult.error) {
decoder_plugin->free_decoder(decoder);
return dataResult.error;
}

Expand Down

0 comments on commit c2837d2

Please sign in to comment.