projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96c0061
)
libxl: only free console reader if it was allocated in main_dmesg
author
Matthew Daley
<mattjd@gmail.com>
Wed, 18 Sep 2013 03:37:50 +0000
(15:37 +1200)
committer
Ian Campbell
<ian.campbell@citrix.com>
Wed, 25 Sep 2013 11:56:00 +0000
(12:56 +0100)
Coverity-ID:
1055304
Signed-off-by: Matthew Daley <mattjd@gmail.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 81ec66c85f67a63383a3e561f29980bdd051cb3f..642b130864991c740a2ad31ae15ac76b6b1dcf64 100644
(file)
--- a/
tools/libxl/xl_cmdimpl.c
+++ b/
tools/libxl/xl_cmdimpl.c
@@
-5537,7
+5537,8
@@
int main_dmesg(int argc, char **argv)
printf("%s", line);
finish:
- libxl_xen_console_read_finish(ctx, cr);
+ if (cr)
+ libxl_xen_console_read_finish(ctx, cr);
return ret;
}