|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [qemu-xen-unstable] cpu_unregister_map_client: fix memor
commit b471f03d51cde3976b6d52179ca2a86d8906a587
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Date: Tue Jun 30 15:22:14 2009 +0100
cpu_unregister_map_client: fix memory leak
fix memory leak in cpu_unregister_map_client() and cpu_notify_map_clients().
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
[ Picked out of qemu-devel submission for exec.c, because we have a
clone-and-hack of the cpu_*map* code :-( -iwj ]
---
i386-dm/exec-dm.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/i386-dm/exec-dm.c b/i386-dm/exec-dm.c
index 45fc8e5..b8af55a 100644
--- a/i386-dm/exec-dm.c
+++ b/i386-dm/exec-dm.c
@@ -776,6 +776,7 @@ void cpu_unregister_map_client(void *_client)
MapClient *client = (MapClient *)_client;
LIST_REMOVE(client, link);
+ qemu_free(client);
}
static void cpu_notify_map_clients(void)
@@ -785,7 +786,7 @@ static void cpu_notify_map_clients(void)
while (!LIST_EMPTY(&map_client_list)) {
client = LIST_FIRST(&map_client_list);
client->callback(client->opaque);
- LIST_REMOVE(client, link);
+ cpu_unregister_map_client(client);
}
}
--
generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [qemu-xen-unstable] cpu_unregister_map_client: fix memory leak,
Ian Jackson <=
|
|
|
|
|