[coverity] 1543273 Resource Leak

This commit is contained in:
akallabeth 2024-04-11 12:45:10 +02:00 committed by Martin Fleisz
parent 79d3825df0
commit e63d4666a0

View File

@ -2421,7 +2421,10 @@ static UINT rdpdr_server_send_device_query_directory_request(RdpdrServerContext*
{
if (Stream_Write_UTF16_String_From_UTF8(s, pathLength / sizeof(WCHAR), path,
pathLength / sizeof(WCHAR), TRUE) < 0)
{
Stream_Free(s, TRUE);
return ERROR_INTERNAL_ERROR;
}
}
return rdpdr_seal_send_free_request(context, s);