aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_qmp.c
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2012-10-05 14:34:30 +0100
committerAnthony PERARD <anthony.perard@citrix.com>2012-10-05 14:34:30 +0100
commit7bb7e581a4b8f3e22bf7de6826bfa705f8f7cfaf (patch)
treef1307f7c06621e1ec489ed9b9cd357021a1582d9 /tools/libxl/libxl_qmp.c
parent5fe37ba9c6b6658ed7980f81f8374acd6e2f3bbd (diff)
downloadxen-7bb7e581a4b8f3e22bf7de6826bfa705f8f7cfaf.tar.gz
xen-7bb7e581a4b8f3e22bf7de6826bfa705f8f7cfaf.tar.bz2
xen-7bb7e581a4b8f3e22bf7de6826bfa705f8f7cfaf.zip
libxl_json: Use libxl alloc function.
This patch makes use of the libxl allocation API and the GC and removes the check for allocation failure. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_qmp.c')
-rw-r--r--tools/libxl/libxl_qmp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c
index 32f7ac7381..0a76a3e45c 100644
--- a/tools/libxl/libxl_qmp.c
+++ b/tools/libxl/libxl_qmp.c
@@ -484,7 +484,6 @@ static int qmp_next(libxl__gc *gc, libxl__qmp_handler *qmp)
if (o) {
rc = qmp_handle_response(qmp, o);
- libxl__json_object_free(gc, o);
} else {
LIBXL__LOG(qmp->ctx, LIBXL__LOG_ERROR,
"Parse error of : %s\n", s);