[7151] Free VLANClientState using qemu_free() (Mark McLoughlin)
Revision: 7151
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7151 Author: aliguori Date: 2009-04-17 17:11:12 +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:
--------------
trunk/net.c
Modified: trunk/net.c
===================================================================
net.c +1 -1
@@ -369,7 +369,7 @@ }free (vc->name);free (vc->model); -free (vc); +qemu_free (vc);break ; }else pvc = &(*pvc)->next;