On 12/22/18 4:27 AM, w00426999 wrote: > Memset vhost_dev to zero in the vhost_dev_cleanup function. > This causes dev.vqs to be NULL, so that > vqs does not free up space when calling the g_free function. > This will result in a memory leak. But you can't release vqs > directly in the vhost_dev_cleanup function, because vhost_net > will also call this function, and vhost_net's vqs is assigned by array. > In order to solve this problem, we first save the pointer of vqs, > and release the space of vqs after vhost_dev_cleanup is called. > > Signed-off-by: Jian Wang <wangjian...@huawei.com>
It appears that this is your first qemu contribution - welcome! Your S-o-b tag uses a different spelling "Jian Wang" than your From: line "w00426999". You may want to address your git config settings so that outgoing mail sets the From: line correctly (I'm not sure which config settings are involved; I also know that sometimes you can't control the actual mail From: such as when sending from an address that undergoes list munging due to SPF settings, but in that case git can be told to insert a From: in the message body that will override any From: header). Fixing it now will avoid having to add a .mailmap entry to tie the two spellings together. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature