[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] spice: fix memory leak
From: |
Gerd Hoffmann |
Subject: |
[Qemu-trivial] [PATCH] spice: fix memory leak |
Date: |
Wed, 11 Feb 2015 17:44:01 +0100 |
Found by coverity.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
monitor.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/monitor.c b/monitor.c
index c3cc060..29d7e5b 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1101,6 +1101,7 @@ static int client_migrate_info(Monitor *mon, const QDict
*qdict,
if (strcmp(protocol, "spice") == 0) {
if (!qemu_using_spice(&err)) {
qerror_report_err(err);
+ error_free(local_err);
return -1;
}
--
1.8.3.1
- [Qemu-trivial] [PATCH] spice: fix memory leak,
Gerd Hoffmann <=