diff options
author | Ian Jackson <ian.jackson@eu.citrix.com> | 2012-01-27 17:01:19 +0000 |
---|---|---|
committer | Ian Jackson <ian.jackson@eu.citrix.com> | 2012-01-27 17:01:19 +0000 |
commit | ab94a40b96b54490140b11b5424eece23585df0c (patch) | |
tree | 423d5b45b027cffe1e4d7a4bae822f3945c79eb8 /tools/libxl/xl.c | |
parent | 8e5662983231a94b9e78ff7e0d4a6cfd988ca213 (diff) | |
download | xen-ab94a40b96b54490140b11b5424eece23585df0c.tar.gz xen-ab94a40b96b54490140b11b5424eece23585df0c.tar.bz2 xen-ab94a40b96b54490140b11b5424eece23585df0c.zip |
xl: fix a couple of memory leaks
* dolog leaked the log message (!)
* main() leaked the config_data (perhaps a false positive from valgrind,
but it's nicer to tidy it up).
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/xl.c')
-rw-r--r-- | tools/libxl/xl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c index 7b9d2c855a..02a680326f 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -135,6 +135,7 @@ int main(int argc, char **argv) config_file, strerror(errno)); parse_global_config(config_file, config_data, config_len); free(config_file); + free(config_data); /* Reset options for per-command use of getopt. */ argv += optind; |