提交 dad35419 编写于 作者: A aliguori

Free VLANClientState using qemu_free() (Mark McLoughlin)

It's allocated using qemu_mallocz(), so ...

The name and model strings are strdup() allocated, so free()
is still appropriate for them.
Reported-by: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NMark McLoughlin <markmc@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7151 c046a42c-6fe2-441c-8c8c-71466251a162
上级 b946a153
...@@ -369,7 +369,7 @@ void qemu_del_vlan_client(VLANClientState *vc) ...@@ -369,7 +369,7 @@ void qemu_del_vlan_client(VLANClientState *vc)
} }
free(vc->name); free(vc->name);
free(vc->model); free(vc->model);
free(vc); qemu_free(vc);
break; break;
} else } else
pvc = &(*pvc)->next; pvc = &(*pvc)->next;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册