Skip to content

Fix/ressource leak - #253

Open
mphschmitt wants to merge 2 commits into
chhylp123:masterfrom
mphschmitt:fix/ressource_leak
Open

Fix/ressource leak#253
mphschmitt wants to merge 2 commits into
chhylp123:masterfrom
mphschmitt:fix/ressource_leak

Conversation

@mphschmitt

Copy link
Copy Markdown

Some files were opened but never closed. This causes a resource leaks, which can be problematic in long running processes such as hifiasm, and even can cause security problems.
Here, it should not change anything, but is still removes warnings.

The file descriptor was not closed on error, which causes
a ressource leak.
A same file pointer was used to open multiple files which were not
closed, thus causing a ressouce leak.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant