Skip to content

Commit

Permalink
Merge pull request #205 from Mike-Leo-Smith/patch-1
Browse files Browse the repository at this point in the history
Fix possible memory leak in `SaveEXR`
  • Loading branch information
syoyo authored Apr 20, 2024
2 parents 6c8742c + cc93faa commit 6b8b66f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tinyexr.h
Original file line number Diff line number Diff line change
Expand Up @@ -9287,9 +9287,6 @@ int SaveEXR(const float *data, int width, int height, int components,
}

int ret = SaveEXRImageToFile(&image, &header, outfilename, err);
if (ret != TINYEXR_SUCCESS) {
return ret;
}

free(header.channels);
free(header.pixel_types);
Expand Down

0 comments on commit 6b8b66f

Please sign in to comment.