projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b01bd9
)
xl: Free optdata_begin when saving domain config
author
Ian Jackson
<ian.jackson@eu.citrix.com>
Tue, 21 Jan 2014 18:45:30 +0000
(18:45 +0000)
committer
Ian Campbell
<ian.campbell@citrix.com>
Tue, 28 Jan 2014 11:21:49 +0000
(11:21 +0000)
This makes valgrind a bit happier.
It is also
Coverity-CID:
1055903
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Ian Campbell <Ian.Campbell@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 d93e01b4080568126c0a5fd5792493882f9a03f8..aff6f908bf86cfd745faba740b614d8f2fcd0d49 100644
(file)
--- a/
tools/libxl/xl_cmdimpl.c
+++ b/
tools/libxl/xl_cmdimpl.c
@@
-3442,6
+3442,8
@@
static void save_domain_core_writeconfig(int fd, const char *source,
ctx, fd, optdata_begin, hdr.optional_data_len,
source, "header"));
+ free(optdata_begin);
+
fprintf(stderr, "Saving to %s new xl format (info"
" 0x%"PRIx32"/0x%"PRIx32"/%"PRIu32")\n",
source, hdr.mandatory_flags, hdr.optional_flags,