ISC_REQ_ALLOCATE_MEMORY | The [*security package*](../secgloss/s-gly.md) allocates output buffers for you. When you have finished using the output buffers, free them by calling the [FreeContextBuffer](/windows/win32/api/sspi/nf-sspi-freecontextbuffer) function.
result->addrInfo->ai_addr = calloc(1, sizeof(struct sockaddr_in))) == NULL
should no longer exist according to cuamqp echoing the change in PR: https://github.com/Azure/azure-c-shared-utility/pull/515https://github.com/Azure/azure-uamqp-python/blob/4558df974fa1a483cf5f0eaf7fe32af465292a50/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/tlsio_schannel.c#L298
by:
because the flag
ISC_REQ_ALLOCATE_MEMORY
is used in code: https://github.com/Azure/azure-uamqp-python/blob/4558df974fa1a483cf5f0eaf7fe32af465292a50/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/tlsio_schannel.c#L365-L368according to https://docs.microsoft.com/en-us/windows/win32/secauthn/initializesecuritycontext--schannel