From 84eba9b8f11ba4bb7f7da2ea7e9d28be536f3ea9 Mon Sep 17 00:00:00 2001 From: aliguori Date: Fri, 17 Apr 2009 18:07:01 +0000 Subject: [PATCH] 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/branches/stable_0_10@7161 c046a42c-6fe2-441c-8c8c-71466251a162 --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index 109b893d3..ae5442180 100644 --- a/net.c +++ b/net.c @@ -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; -- 2.39.5