diff --git a/libfreerdp/core/transport.c b/libfreerdp/core/transport.c index 534cc6b8c..b20d4a2fe 100644 --- a/libfreerdp/core/transport.c +++ b/libfreerdp/core/transport.c @@ -325,6 +325,7 @@ BOOL transport_connect_nla(rdpTransport* transport) if (!settings->Authentication) return TRUE; + nla_free(rdp->nla); rdp->nla = nla_new(instance, transport, settings); if (!rdp->nla) @@ -1214,6 +1215,7 @@ void transport_free(rdpTransport* transport) if (transport->ReceiveBuffer) Stream_Release(transport->ReceiveBuffer); + nla_free(transport->nla); StreamPool_Free(transport->ReceivePool); CloseHandle(transport->connectedEvent); CloseHandle(transport->rereadEvent);