Subject: | memory corruption OCSP on Windows |
The changes I made for fixing a memory leak within the OCSP code do not work properly on Windows because I've used a simple free instead of OPENSSL_free to free memory allocated by OpenSSL. This results in messages like "Free to wrong pool 3f5e38 not 40b0122..." - see RT#124236.
The fix is simple: use OPENSSL_free instead of free. Appropriate patch attached.
Regards,
Steffen
Subject: | SSLeay.xs.diff |
Index: SSLeay.xs
===================================================================
--- SSLeay.xs (revision 516)
+++ SSLeay.xs (working copy)
@@ -6608,7 +6608,7 @@
croak("OCSP certid has no length");
XPUSHs(sv_2mortal(newSVpvn((char *)pi, len)));
- free(pi);
+ OPENSSL_free(pi);
OCSP_CERTID_free(id);
}