Election-Tech-Initiative / electionguard-cpp

A C++ implementation of ElectionGuard specification focused on encryption components.
https://www.electionguard.vote/
MIT License
23 stars 26 forks source link

🐞 Check classes for leaks #329

Open SteveMaier-IRT opened 2 years ago

SteveMaier-IRT commented 2 years ago

Is there an existing issue for this?

Current Behavior

The .NET implementation of the manifest, context, encryption device, could be leaking memory like the ballots did. This was due to the Handle to the C++ structures were getting closed before they were calling the code for Freeing the memory.

The rest of the classes should be looked at to make sure if they are leaking or not.

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS:

Anything else?

No response