Hans Leidekker (@hans) commented about dlls/cryptxml/cryptxml.c:
*handle = (HCRYPTXML)doc; return S_OK;
}
+HRESULT WINAPI CryptXmlClose( HCRYPTXML handle ) +{
- struct xmldoc *doc = (struct xmldoc *)handle;
- TRACE( "handle %p\n", handle );
- if (!handle) return E_INVALIDARG;
- if (doc->sig.SignatureValue.pbData) free( doc->sig.SignatureValue.pbData );
There's no need to check the pointer.