From: aliguori Date: Fri, 17 Apr 2009 17:11:12 +0000 (+0000) Subject: Free VLANClientState using qemu_free() (Mark McLoughlin) X-Git-Tag: v0.11.0-rc0~840 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dad354198e4194fceb744158963743a33d8d43dc;p=thirdparty%2Fqemu.git 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 Signed-off-by: Mark McLoughlin Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7151 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/net.c b/net.c index 5a8f8240553..3cd6277767a 100644 --- a/net.c +++ b/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;