Skip to content

How to diagnose memory leak in ASN.1 structure? #21916

Answered by slontis
gingerbeard-man asked this question in Q&A
Discussion options

You must be logged in to vote

Try printing out the fields of the object right after REVOCATION_DETAILS_new() is called..
I suspect rd->additionalInfo is not NULL.
If they are not NULL and then you are then doing rd->additionalInfo = ASN1_PRINTABLESTRING_new()
you will end up with floating memory.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gingerbeard-man
Comment options

Answer selected by gingerbeard-man
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants