/* alloc functions = */ NULL,
/* context = */ NULL);
if (handler == NULL)
- {
- graph_destroy (cfg);
return (-1);
- }
printf ("Content-Type: application/json\n");
status = inst_data_to_json (inst,
dp_begin, dp_end, handler);
- graph_destroy (cfg);
yajl_gen_free (handler);
return (status);
/* alloc functions = */ NULL,
/* context = */ NULL);
if (handler == NULL)
- {
- graph_destroy (cfg);
return (-1);
- }
printf ("Content-Type: application/json\n");
status = graph_def_to_json (cfg, handler);
- graph_destroy (cfg);
yajl_gen_free (handler);
return (status);