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