mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 08:54:38 +09:00
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:
@@ -342,6 +342,7 @@ BOOL nego_send_preconnection_pdu(rdpNego* nego)
|
||||
|
||||
if (!s)
|
||||
{
|
||||
free(wszPCB);
|
||||
WLog_ERR(TAG, "Stream_New failed!");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user