projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e129b17
)
xl: call libxl_dominfo_init in main_list
author
Wei Liu
<wei.liu2@citrix.com>
Mon, 27 Jul 2015 17:45:04 +0000
(18:45 +0100)
committer
Ian Campbell
<ian.campbell@citrix.com>
Tue, 28 Jul 2015 10:53:19 +0000
(11:53 +0100)
Always call init and dispose function on info_buf though it's not
always used.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c
patch
|
blob
|
history
diff --git
a/tools/libxl/xl_cmdimpl.c
b/tools/libxl/xl_cmdimpl.c
index 9755d552601d7b95638fd5a1f5f1dbb9c21f8012..74edf2cc7a7d727be6be5b5e27504c7d8fefef72 100644
(file)
--- a/
tools/libxl/xl_cmdimpl.c
+++ b/
tools/libxl/xl_cmdimpl.c
@@
-4852,6
+4852,8
@@
int main_list(int argc, char **argv)
break;
}
+ libxl_dominfo_init(&info_buf);
+
if (optind >= argc) {
info = libxl_list_domain(ctx, &nb_domain);
if (!info) {
@@
-4886,8
+4888,8
@@
int main_list(int argc, char **argv)
if (info_free)
libxl_dominfo_list_free(info, nb_domain);
- else
-
libxl_dominfo_dispose(info
);
+
+
libxl_dominfo_dispose(&info_buf
);
return 0;
}