From: Florian Forster Date: Thu, 9 Sep 2010 08:02:00 +0000 (+0200) Subject: graph_{data,def}_json actions: Don't destroy the graph_config_t object. X-Git-Tag: v4.0.0~30 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c4c851ce35ad88eff7f843dbced132f55b8a2f6c;p=collection4.git graph_{data,def}_json actions: Don't destroy the graph_config_t object. --- 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);