tools/xenstore: Fix memory leaks in the client
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 23 May 2014 10:32:01 +0000 (11:32 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 2 Jun 2014 13:47:34 +0000 (14:47 +0100)
commit42e896b257ad361137fd7629e20f2e1580c1a6cf
tree08fa2298904ce57f6dc5377aaab3e9ec7daca7a7
parent2fd0257fbf39305ea63afd784c74c7a3bbbcfa30
tools/xenstore: Fix memory leaks in the client

Free the expanding buffer and output buffer after use.  Close the xenstore
handle after use.

The command line client is now valgrind-clean.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xenstore/xenstore_client.c