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_def_json.c
diff --git
a/src/action_graph_def_json.c
b/src/action_graph_def_json.c
index
684ad7a
..
1ba0678
100644
(file)
--- 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)
/* 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");
@@
-88,7
+85,6
@@
int action_graph_def_json (void) /* {{{ */
status = graph_def_to_json (cfg, handler);
status = graph_def_to_json (cfg, handler);
- graph_destroy (cfg);
yajl_gen_free (handler);
return (status);
yajl_gen_free (handler);
return (status);