mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[Inliner] Fixed memory leak
This commit is contained in:
committed by
EmilieNumworks
parent
37f78c5d4d
commit
4718ff8016
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user