[Inliner] Fixed memory leak

This commit is contained in:
Joachim Le Fournis
2021-03-01 14:45:12 +01:00
committed by EmilieNumworks
parent 37f78c5d4d
commit 4718ff8016

View File

@@ -104,6 +104,13 @@ int main(int argc, char * argv[]) {
FILE * implementation = fopen(implementationPath, "w");
generateImplementationFromImage(implementation, lowerSnakeCaseName, camelCaseName, width, height, rowPointers);
fclose(implementation);
for (int i=0; i<height; i++) {
free(rowPointers[i]);
}
free(rowPointers);
free(png);
free(info);
fclose(inputFile);
}