Hi all,

Some "getter" methods (eg. X509_get_pubkey) return a new instance (or incrementing the ref count) of the returned object and some do not (eg. X509_get_issuer_name).

I find myself having to check out the actual implementations of every "getter" method I am caling to ensure if I need to do a *_free on the returned object.

Is there a general guideline on which "getter" methods return new instances (or inc ref), and which do not?

Tan Eng Ten
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to