Tat Sing Kong wrote:
> 
> Anyone using the OCSP beta stuff in the snapshot of openSSL?  I am
> getting memory leaks for it, but when I do add the free'ing code it
> crashes.  Here's the sequence
> 
> OCSP_REQUEST_free(pOCSPRequest);
> OCSP_RESPONSE_free(pResponse);
> 
> // Next line crashes
> OCSP_BASICRESP_free(pOCSPBasic);
> OCSP_CERTID_free(pID);
> 
> I am following what the demo app does.  However, I don't sign the OCSP
> requests.
> 

Difficult to tell without seeing the rest of your code. However as a
general rule functions which have a '0' in their name return internal
pointers and the result must *not* be freed. Those with '1' in the name
allocate or copy new structures and should be freed.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to