Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be more consistent about construction/destruction of ChipCertificateD…
…ata. We are mixing placement new with Clear() calls and no destructor calls, and in some cases (ChipCertificateSet::Release) doing neither clearing nor destruction. Instead, try to consistently use ~ChipCertificateData when we are no longer keeping track of the relevant object. The addition of `Clear()` in `~ChipCertificateData` is both to match existing behavior and on the assumption that we don't want that data lying around in memory if not needed.
- Loading branch information