[coverity] 1543930 Dereference after null check
This commit is contained in:
parent
581c9f1798
commit
e88cb403bb
@ -396,14 +396,13 @@ static void dvcman_channel_free(DVCMAN_CHANNEL* channel)
|
|||||||
|
|
||||||
static void dvcman_channel_unref(DVCMAN_CHANNEL* channel)
|
static void dvcman_channel_unref(DVCMAN_CHANNEL* channel)
|
||||||
{
|
{
|
||||||
DVCMAN* dvcman = NULL;
|
|
||||||
|
|
||||||
WINPR_ASSERT(channel);
|
WINPR_ASSERT(channel);
|
||||||
if (InterlockedDecrement(&channel->refCounter))
|
if (InterlockedDecrement(&channel->refCounter))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
dvcman = channel->dvcman;
|
DVCMAN* dvcman = channel->dvcman;
|
||||||
HashTable_Remove(dvcman->channelsById, &channel->channel_id);
|
if (dvcman)
|
||||||
|
HashTable_Remove(dvcman->channelsById, &channel->channel_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
static UINT dvcchannel_send_close(DVCMAN_CHANNEL* channel)
|
static UINT dvcchannel_send_close(DVCMAN_CHANNEL* channel)
|
||||||
|
Loading…
Reference in New Issue
Block a user