mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[winpr,clipboard] fix possible resource leak
This commit is contained in:
@@ -78,7 +78,10 @@ static void* clipboard_synthesize_cf_text(wClipboard* clipboard, UINT32 formatId
|
||||
pDstData = ConvertLineEndingToCRLF(data, &size);
|
||||
|
||||
if (!pDstData || (size > *pSize))
|
||||
{
|
||||
free(pDstData);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
*pSize = (UINT32)size;
|
||||
return pDstData;
|
||||
|
||||
Reference in New Issue
Block a user