Skip to contentSkip to conversation

[7161] 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: 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.

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;