[Top][All Lists]

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

[Qemu-devel] [PATCH v2 30/30] migration: fix id leak regression

From: Marc-André Lureau
Subject: [Qemu-devel] [PATCH v2 30/30] migration: fix id leak regression
Date: Tue, 21 Feb 2017 18:14:51 +0400

This leak was introduced in commit

(it stands out quickly with ASAN once the rest of the leaks are also
removed from make check with this series)

Cc: Dr. David Alan Gilbert <address@hidden>
Cc: Juan Quintela <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
 migration/savevm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/migration/savevm.c b/migration/savevm.c
index 5ecd264134..87c7a00832 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -688,6 +688,7 @@ int vmstate_register_with_alias_id(DeviceState *dev, int 
                 return -1;
+            g_free(id);
             se->compat = g_new0(CompatEntry, 1);
             pstrcpy(se->compat->idstr, sizeof(se->compat->idstr), vmsd->name);

reply via email to

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