From c4c851ce35ad88eff7f843dbced132f55b8a2f6c Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 9 Sep 2010 10:02:00 +0200 Subject: [PATCH] graph_{data,def}_json actions: Don't destroy the graph_config_t object. --- src/action_graph_data_json.c | 4 ---- src/action_graph_def_json.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/action_graph_data_json.c b/src/action_graph_data_json.c index 388befd..e103b97 100644 --- a/src/action_graph_data_json.c +++ b/src/action_graph_data_json.c @@ -95,10 +95,7 @@ int action_graph_data_json (void) /* {{{ */ /* alloc functions = */ NULL, /* context = */ NULL); if (handler == NULL) - { - graph_destroy (cfg); return (-1); - } printf ("Content-Type: application/json\n"); @@ -119,7 +116,6 @@ int action_graph_data_json (void) /* {{{ */ status = inst_data_to_json (inst, dp_begin, dp_end, handler); - graph_destroy (cfg); yajl_gen_free (handler); return (status); diff --git a/src/action_graph_def_json.c b/src/action_graph_def_json.c index 684ad7a..1ba0678 100644 --- a/src/action_graph_def_json.c +++ b/src/action_graph_def_json.c @@ -71,10 +71,7 @@ int action_graph_def_json (void) /* {{{ */ /* alloc functions = */ NULL, /* context = */ NULL); if (handler == NULL) - { - graph_destroy (cfg); return (-1); - } printf ("Content-Type: application/json\n"); @@ -88,7 +85,6 @@ int action_graph_def_json (void) /* {{{ */ status = graph_def_to_json (cfg, handler); - graph_destroy (cfg); yajl_gen_free (handler); return (status); -- 2.11.0