summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-17 17:11:12 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-17 17:11:12 +0000
commitdad354198e4194fceb744158963743a33d8d43dc (patch)
treec6e6d48a65d2ecf894c19ed50e88d64fff658556
parentb946a1533209f61a93e34898aebb5b43154b99c3 (diff)
downloadhqemu-dad354198e4194fceb744158963743a33d8d43dc.zip
hqemu-dad354198e4194fceb744158963743a33d8d43dc.tar.gz
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
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index 5a8f824..3cd6277 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;
OpenPOWER on IntegriCloud