Skip to content

Commit

Permalink
fix memory leak in deep scanline IlmImfFuzzTest
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
  • Loading branch information
peterhillman authored and cary-ilm committed Jun 12, 2020
1 parent 07e93a3 commit 2101454
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions OpenEXR/IlmImfFuzzTest/testFuzzDeepScanLines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,24 @@ void generateRandomFile(const char filename[], int channelCount,int parts , Comp
}

pt.writePixels(height);


for (int i = 0; i < height; i++)
{
//
// Fill in data at the last minute.
//

for (int j = 0; j < width; j++)
{
sampleCount[i][j] = rand() % 4 + 1;
for (int k = 0; k < channelCount; k++)
{
delete[] (float*) data[k][i][j];
}
}
}

}
}

Expand Down

0 comments on commit 2101454

Please sign in to comment.