mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[coverity] 1543120 Check of thread-shared field evades lock acquisition
This commit is contained in:
@@ -504,16 +504,15 @@ static void clear_no_cdi_entry(CliprdrFileContext* file_context)
|
||||
{
|
||||
WINPR_ASSERT(file_context);
|
||||
|
||||
if (!file_context->clip_data_entry_without_id)
|
||||
return;
|
||||
|
||||
WINPR_ASSERT(file_context->inode_table);
|
||||
|
||||
HashTable_Lock(file_context->inode_table);
|
||||
clear_entry_selection(file_context->clip_data_entry_without_id);
|
||||
if (file_context->clip_data_entry_without_id)
|
||||
{
|
||||
clear_entry_selection(file_context->clip_data_entry_without_id);
|
||||
|
||||
clip_data_entry_free(file_context->clip_data_entry_without_id);
|
||||
file_context->clip_data_entry_without_id = NULL;
|
||||
clip_data_entry_free(file_context->clip_data_entry_without_id);
|
||||
file_context->clip_data_entry_without_id = NULL;
|
||||
}
|
||||
HashTable_Unlock(file_context->inode_table);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user