[7161] Free VLANClientState using qemu_free() (Mark McLoughlin)
Revision: 7161
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7161 Author: aliguori Date: 2009-04-17 18:07:01 +0000 (Fri, 17 Apr 2009)
Log Message:
-----------
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 <[email protected]>
Signed-off-by Mark McLoughlin <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
branches/stable_0_10/net.c
Modified: branches/stable_0_10/net.c
===================================================================
stable_0_10/net.c +1 -1
@@ -365,7 +365,7 @@ }free (vc->name);free (vc->model); -free (vc); +qemu_free (vc);break ; }else pvc = &(*pvc)->next;