propertytPlainTextRules.Ocsp
property Ocsp: iPlainTextOcspCache read fOcsp write fOcsp;
ASSIGNING THIS TRANSFERS OWNERSHIP TO THE REFERENCE COUNT. The field is an interface, and tPlainTextOcspCache is a TInterfacedObject, so the cache is freed when the last reference goes - which happens when this object is destroyed. A deployment that also calls Free on the cache it created gets EInvalidPointer at teardown, having freed it twice. Create it, assign it, and let it go; keep a separate INTERFACE variable if the concrete methods (Publish, LoadFromDirectory) are needed later.