diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-17 18:07:01 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-17 18:07:01 +0000 |
commit | 84eba9b8f11ba4bb7f7da2ea7e9d28be536f3ea9 (patch) | |
tree | 5cb0248a461bd7a1025b85ca88850cb6d9290284 /net.c | |
parent | a34b6eb776fbd357fb0dfbdbfa680b4f54e12a4c (diff) |
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: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/branches/stable_0_10@7161 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -365,7 +365,7 @@ void qemu_del_vlan_client(VLANClientState *vc) } free(vc->name); free(vc->model); - free(vc); + qemu_free(vc); break; } else pvc = &(*pvc)->next; |