Skip to content

Free saveto buffers on exit#10

Open
AnouarMohamed wants to merge 2 commits intooracle:masterfrom
AnouarMohamed:issue-1-memory-leak
Open

Free saveto buffers on exit#10
AnouarMohamed wants to merge 2 commits intooracle:masterfrom
AnouarMohamed:issue-1-memory-leak

Conversation

@AnouarMohamed
Copy link
Copy Markdown

Fixes #1

Summary

Free the buffer allocated in saveto() before returning, and close the local file descriptors on the function exit path.

Root Cause

saveto() allocated memory with malloc() and never released it when the loop ended.

Validation

  • make clean && make

@oracle-contributor-agreement
Copy link
Copy Markdown

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Apr 23, 2026
Signed-off-by: AnouarMohamed <m.anouar@mundiapolis.ma>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Required At least one contributor does not have an approved Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory leak

1 participant