From: Ian Jackson Date: Tue, 21 Jan 2014 18:45:30 +0000 (+0000) Subject: xl: Free optdata_begin when saving domain config X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5645 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5561194ed953c88d6238b1135dcad6c69fa0accb;p=xen.git xl: Free optdata_begin when saving domain config This makes valgrind a bit happier. It is also Coverity-CID: 1055903 Signed-off-by: Ian Jackson Cc: Ian Campbell Acked-by: Ian Campbell --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index d93e01b408..aff6f908bf 100644 --- 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,