core/nego: Fix leak found by covscan

leaked_storage: Variable "wszPCB" going out of scope leaks the storage it points to.
This commit is contained in:
Ondrej Holy
2018-08-17 16:16:37 +02:00
parent 8f8d91e361
commit 6e0f05cbdb

View File

@@ -342,6 +342,7 @@ BOOL nego_send_preconnection_pdu(rdpNego* nego)
if (!s)
{
free(wszPCB);
WLog_ERR(TAG, "Stream_New failed!");
return FALSE;
}