qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 6/7] Fix mismatching allocation and deallocation


From: Stefan Hajnoczi
Subject: [Qemu-devel] [PATCH 6/7] Fix mismatching allocation and deallocation
Date: Wed, 5 Oct 2011 09:47:58 +0100

From: Stefan Weil <address@hidden>

This error was reported by cppcheck.

Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
 console.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/console.c b/console.c
index 6dfcc47..e43de92 100644
--- a/console.c
+++ b/console.c
@@ -1538,7 +1538,7 @@ int text_console_init(QemuOpts *opts, CharDriverState 
**_chr)
     }
 
     if (!s) {
-        free(chr);
+        g_free(chr);
         return -EBUSY;
     }
 
-- 
1.7.6.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]