Skip to content

Commit

Permalink
Merge pull request #1104 from xiaoxiaoafeifei/master
Browse files Browse the repository at this point in the history
Fix potential memory leak in file heif_convert.cc
  • Loading branch information
farindk authored Jan 16, 2024
2 parents 5c6585d + 90955e3 commit b2ab539
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/heif_convert.cc
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ int main(int argc, char** argv)
const char* auxTypeC = nullptr;
err = heif_image_handle_get_auxiliary_type(aux_handle, &auxTypeC);
if (err.code) {
heif_image_release(aux_image);
heif_image_handle_release(aux_handle);
heif_image_handle_release(handle);
std::cerr << "Could not get type of auxiliary image: " << err.message << "\n";
Expand Down

0 comments on commit b2ab539

Please sign in to comment.