Skip to content

Commit

Permalink
updated main to prevent memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
OrdinarilySam committed Feb 13, 2024
1 parent 9a12595 commit b56d4e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ int main(int argc, char* argv[]) {
traceRays(scene);

fclose(scene->output);
free(scene->lights);
free(scene->materials);
free(scene->ellipsoids);
free(scene);
return 0;
}

0 comments on commit b56d4e1

Please sign in to comment.