projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae79b4c
)
xenstore: Fix a memory leak in 'xs_is_domain_introduced'.
author
Keir Fraser
<keir.fraser@citrix.com>
Thu, 11 Sep 2008 17:00:06 +0000
(18:00 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Thu, 11 Sep 2008 17:00:06 +0000
(18:00 +0100)
Signed-off-by: Konrad Rzeszutek <konrad@virtualiron.com>
tools/xenstore/xs.c
patch
|
blob
|
history
diff --git
a/tools/xenstore/xs.c
b/tools/xenstore/xs.c
index 94db1ce45ea986824835800ad47cb9499391dfc3..7fef574fbdcb9f653b19bba97909349ba00ef6fd 100644
(file)
--- a/
tools/xenstore/xs.c
+++ b/
tools/xenstore/xs.c
@@
-795,8
+795,11
@@
char *xs_get_domain_path(struct xs_handle *h, unsigned int domid)
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 */