Ensure all NLA structs are freed up

This commit is contained in:
akallabeth 2020-05-12 09:09:13 +02:00
parent 46c4b7bdc2
commit 477ad675f3
1 changed files with 2 additions and 0 deletions

View File

@ -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);