Patchwork [7/8] Fix free use in xen_backend.c

login
register
mail settings
Submitter Jean-Christophe DUBOIS
Date Nov. 15, 2009, 6:18 p.m.
Message ID <1258309100-29591-7-git-send-email-jcd@tribudubois.net>
Download mbox | patch
Permalink /patch/38466/
State New
Headers show

Comments

Jean-Christophe DUBOIS - Nov. 15, 2009, 6:18 p.m.
xen_backend.c is using qemu_free() instead of free().
Fix it.

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
---
 hw/xen_backend.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/xen_backend.c b/hw/xen_backend.c
index 658ea8d..a2e408f 100644
--- a/hw/xen_backend.c
+++ b/hw/xen_backend.c
@@ -594,7 +594,7 @@  static void xenstore_update(void *unused)
 	xenstore_update_fe(vec[XS_WATCH_PATH], (void*)ptr);
 
 cleanup:
-    qemu_free(vec);
+    free(vec);
 }
 
 static void xen_be_evtchn_event(void *opaque)