Skip to content

Add finalizer for x509_Revoked #1346

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

Merged
merged 6 commits into from
Jun 24, 2025
Merged

Conversation

miguelaranda0
Copy link
Collaborator

Bug: 383304212
Change-Id: Ia9b7418c50e2d415f3147af2a2cc2a0a46c67443

Bug: 383304212
Change-Id: Ia9b7418c50e2d415f3147af2a2cc2a0a46c67443
protected void finalize() throws Throwable {
try {
if (mContext != 0) {
NativeCrypto.X509_REVOKED_free(mContext);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set mContext to 0.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Bug: 383304212
Change-Id: Ia9b7418c50e2d415f3147af2a2cc2a0a46c67443
import java.io.ByteArrayOutputStream;
import java.lang.AutoCloseable;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to import java.lang classes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Bug: 383304212
Change-Id: Ia9b7418c50e2d415f3147af2a2cc2a0a46c67443
Bug: 383304212
Change-Id: Ia9b7418c50e2d415f3147af2a2cc2a0a46c67443
Bug: 383304212
Change-Id: Ia9b7418c50e2d415f3147af2a2cc2a0a46c67443
Bug: 383304212
Change-Id: Ia9b7418c50e2d415f3147af2a2cc2a0a46c67443
@miguelaranda0 miguelaranda0 merged commit 4ef1df7 into google:master Jun 24, 2025
38 checks passed
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.

2 participants