qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [7161] Free VLANClientState using qemu_free() (Mark McLoughlin)
@ 2009-04-17 18:07 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2009-04-17 18:07 UTC (permalink / raw)
  To: qemu-devel

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 <jan.kiszka@siemens.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Modified Paths:
--------------
    branches/stable_0_10/net.c

Modified: branches/stable_0_10/net.c
===================================================================
--- branches/stable_0_10/net.c	2009-04-17 18:06:56 UTC (rev 7160)
+++ branches/stable_0_10/net.c	2009-04-17 18:07:01 UTC (rev 7161)
@@ -365,7 +365,7 @@
             }
             free(vc->name);
             free(vc->model);
-            free(vc);
+            qemu_free(vc);
             break;
         } else
             pvc = &(*pvc)->next;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-17 18:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-17 18:07 [Qemu-devel] [7161] Free VLANClientState using qemu_free() (Mark McLoughlin) Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).