Skip to content

Commit cc93faa

Browse files
Fix possible memory leak
1 parent 6c8742c commit cc93faa

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tinyexr.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9287,9 +9287,6 @@ int SaveEXR(const float *data, int width, int height, int components,
92879287
}
92889288

92899289
int ret = SaveEXRImageToFile(&image, &header, outfilename, err);
9290-
if (ret != TINYEXR_SUCCESS) {
9291-
return ret;
9292-
}
92939290

92949291
free(header.channels);
92959292
free(header.pixel_types);

0 commit comments

Comments
 (0)