-
Notifications
You must be signed in to change notification settings - Fork 293
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
Conversation
Bug: 383304212 Change-Id: Ia9b7418c50e2d415f3147af2a2cc2a0a46c67443
protected void finalize() throws Throwable { | ||
try { | ||
if (mContext != 0) { | ||
NativeCrypto.X509_REVOKED_free(mContext); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set mContext to 0.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Bug: 383304212
Change-Id: Ia9b7418c50e2d415f3147af2a2cc2a0a46c67443