|
|
@ -92,15 +92,16 @@ struct sIsoConnection
|
|
|
|
static void
|
|
|
|
static void
|
|
|
|
IsoConnection_releaseAllocatedMemory(IsoConnection self)
|
|
|
|
IsoConnection_releaseAllocatedMemory(IsoConnection self)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (self->socket)
|
|
|
|
|
|
|
|
Socket_destroy(self->socket);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if (CONFIG_MMS_SUPPORT_TLS == 1)
|
|
|
|
#if (CONFIG_MMS_SUPPORT_TLS == 1)
|
|
|
|
if (IsoServer_getTLSConfiguration(self->isoServer) != NULL) {
|
|
|
|
if (IsoServer_getTLSConfiguration(self->isoServer) != NULL) {
|
|
|
|
TLSSocket_close(self->tlsSocket);
|
|
|
|
TLSSocket_close(self->tlsSocket);
|
|
|
|
|
|
|
|
self->tlsSocket = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif /* (CONFIG_MMS_SUPPORT_TLS == 1) */
|
|
|
|
#endif /* (CONFIG_MMS_SUPPORT_TLS == 1) */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (self->socket)
|
|
|
|
|
|
|
|
Socket_destroy(self->socket);
|
|
|
|
|
|
|
|
|
|
|
|
GLOBAL_FREEMEM(self->session);
|
|
|
|
GLOBAL_FREEMEM(self->session);
|
|
|
|
GLOBAL_FREEMEM(self->presentation);
|
|
|
|
GLOBAL_FREEMEM(self->presentation);
|
|
|
|
AcseConnection_destroy(self->acseConnection);
|
|
|
|
AcseConnection_destroy(self->acseConnection);
|
|
|
@ -662,8 +663,10 @@ IsoConnection_close(IsoConnection self)
|
|
|
|
self->socket = NULL;
|
|
|
|
self->socket = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
#if (CONFIG_MMS_SUPPORT_TLS == 1)
|
|
|
|
#if (CONFIG_MMS_SUPPORT_TLS == 1)
|
|
|
|
if (self->tlsSocket)
|
|
|
|
if (self->tlsSocket) {
|
|
|
|
TLSSocket_close(self->tlsSocket);
|
|
|
|
TLSSocket_close(self->tlsSocket);
|
|
|
|
|
|
|
|
self->tlsSocket = NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
Socket_destroy(socket);
|
|
|
|
Socket_destroy(socket);
|
|
|
|