X-Git-Url: https://git.octo.it/?p=collection4.git;a=blobdiff_plain;f=src%2Faction_graph_data_json.c;h=e103b975d94fed80e33b3ec0098c81a05d8dd93b;hp=388befd972bd01920c3385ef8d98d30612ecfd31;hb=c4c851ce35ad88eff7f843dbced132f55b8a2f6c;hpb=a9998442e628891b69699d7a2a0c85f46f9cdcc9 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);