|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] Fix memory leak in xs_is_domain_introduced
Fixes a memory leak in 'xs_is_domain_introduced'.
Signed-off-by: Konrad Rzeszutek <konrad@xxxxxxxxxxxxxxx>
xs.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff -r dbac9ee4d761 tools/xenstore/xs.c
--- a/tools/xenstore/xs.c Mon Sep 08 16:02:13 2008 +0100
+++ b/tools/xenstore/xs.c Thu Sep 11 11:52:45 2008 -0400
@@ -795,8 +795,11 @@ char *xs_get_domain_path(struct xs_handl
bool xs_is_domain_introduced(struct xs_handle *h, unsigned int domid)
{
- return strcmp("F",
- single_with_domid(h, XS_IS_DOMAIN_INTRODUCED, domid));
+ char *domain = single_with_domid(h, XS_IS_DOMAIN_INTRODUCED, domid);
+ int rc = strcmp("F", domain);
+
+ free(domain);
+ return rc;
}
/* Only useful for DEBUG versions */
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] Fix memory leak in xs_is_domain_introduced,
Konrad Rzeszutek <=
|
|
|
|
|