drdynvc: fix free invalid pointer.

This commit is contained in:
Zhang Zhaolong 2014-02-11 17:28:12 +08:00
parent f3cd8b65ae
commit 1404532d70
1 changed files with 2 additions and 2 deletions

View File

@ -413,13 +413,13 @@ int dvcman_close_channel(IWTSVirtualChannelManager* pChannelMgr, UINT32 ChannelI
IFCALL(context->OnChannelDisconnected, context, channel->channel_name, channel->pInterface);
free(channel->channel_name);
DEBUG_DVC("dvcman_close_channel: channel %d closed", ChannelId);
ichannel = (IWTSVirtualChannel*) channel;
ichannel->Close(ichannel);
}
free(channel->channel_name);
return 0;
}