aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/tmem.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-23 06:48:14 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-23 06:48:14 +0000
commit463016ab582fb68a17e2f18bcf29a7254a910b73 (patch)
tree45d75d8f8148cea4d904fa038b62b928659096cf /xen/common/tmem.c
parentf38a18594b0daa754f99f802093f0c80a6635634 (diff)
downloadxen-463016ab582fb68a17e2f18bcf29a7254a910b73.tar.gz
xen-463016ab582fb68a17e2f18bcf29a7254a910b73.tar.bz2
xen-463016ab582fb68a17e2f18bcf29a7254a910b73.zip
tmem: fix double-free bug
Tmem double-frees a high-level data structure causing memory corruption under certain circumstances. Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Diffstat (limited to 'xen/common/tmem.c')
-rw-r--r--xen/common/tmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/tmem.c b/xen/common/tmem.c
index 806f543962..efc2f53649 100644
--- a/xen/common/tmem.c
+++ b/xen/common/tmem.c
@@ -943,7 +943,7 @@ static void client_free(client_t *client)
{
list_del(&client->client_list);
tmh_client_destroy(client->tmh);
- tmem_free(client,sizeof(client_t),NULL);
+ tmh_free_infra(client);
}
/* flush all data from a client and, optionally, free it */