Commit dad354198e4194fceb744158963743a33d8d43dc
1 parent
b946a153
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/trunk@7151 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
net.c
@@ -369,7 +369,7 @@ void qemu_del_vlan_client(VLANClientState *vc) | @@ -369,7 +369,7 @@ void qemu_del_vlan_client(VLANClientState *vc) | ||
369 | } | 369 | } |
370 | free(vc->name); | 370 | free(vc->name); |
371 | free(vc->model); | 371 | free(vc->model); |
372 | - free(vc); | 372 | + qemu_free(vc); |
373 | break; | 373 | break; |
374 | } else | 374 | } else |
375 | pvc = &(*pvc)->next; | 375 | pvc = &(*pvc)->next; |