mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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
This commit is contained in:
parent
b946a15332
commit
dad354198e
1 changed files with 1 additions and 1 deletions
2
net.c
2
net.c
|
@ -369,7 +369,7 @@ void qemu_del_vlan_client(VLANClientState *vc)
|
|||
}
|
||||
free(vc->name);
|
||||
free(vc->model);
|
||||
free(vc);
|
||||
qemu_free(vc);
|
||||
break;
|
||||
} else
|
||||
pvc = &(*pvc)->next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue