projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
graph_{data,def}_json actions: Don't destroy the graph_config_t object.
[collection4.git]
/
src
/
action_graph_data_json.c
diff --git
a/src/action_graph_data_json.c
b/src/action_graph_data_json.c
index
388befd
..
e103b97
100644
(file)
--- 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)
/* alloc functions = */ NULL,
/* context = */ NULL);
if (handler == NULL)
- {
- graph_destroy (cfg);
return (-1);
return (-1);
- }
printf ("Content-Type: application/json\n");
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);
status = inst_data_to_json (inst,
dp_begin, dp_end, handler);
- graph_destroy (cfg);
yajl_gen_free (handler);
return (status);
yajl_gen_free (handler);
return (status);