[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] Fix mismatching allocation and deallocation
From: |
Stefan Weil |
Subject: |
[Qemu-trivial] [PATCH] Fix mismatching allocation and deallocation |
Date: |
Sun, 2 Oct 2011 18:53:09 +0200 |
This error was reported by cppcheck.
Signed-off-by: Stefan Weil <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.2.5
- [Qemu-trivial] [PATCH] Fix mismatching allocation and deallocation,
Stefan Weil <=