Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PATCH: Always remove tmp orthoimages in color.color #21

Closed
wants to merge 2 commits into from

Conversation

CharlesGaydon
Copy link
Collaborator

The NamedTemporaryFile was created and direcly forgotten since only its name was assigned to a variable.

As a result, the resulting file was never properly deleted after coloration. This would clog memory of always-running servers (no reboot = no regular deletion of the /tmp/ folder).

By assigning the file and not its name to a variable, the deletion or conservation of the file can be control by removing or keeping the variable in the python context.

@CharlesGaydon CharlesGaydon added the bug Something isn't working label Sep 11, 2023
@CharlesGaydon CharlesGaydon changed the base branch from dev to master September 11, 2023 14:23
@gliegard
Copy link
Contributor

Je ferme cette MR car c'est pour merger dans master, il faut faire un MR pour merger dans dev

@gliegard gliegard closed this Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants