int action_show_graph_json (void) /* {{{ */
{
- graph_config_t *cfg;
+ graph_config_t const *cfg;
yajl_gen_config handler_config;
yajl_gen handler;
/* alloc functions = */ NULL,
/* context = */ NULL);
if (handler == NULL)
- {
- graph_destroy (cfg);
return (-1);
- }
printf ("Content-Type: application/json\n");
status = graph_to_json (cfg, handler);
- graph_destroy (cfg);
yajl_gen_free (handler);
return (status);