Skip to contentSkip to conversation

[7151] Free VLANClientState using qemu_free() (Mark McLoughlin)

Qemu-devel Anthony Liguori 1 participant 1 message Apr 17, 2009

lore
Share & tools
lore
#0 lore raw

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.

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;