git.droids-corp.org
/
protos
/
libecoli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add get_child_refs, tests are ok
[protos/libecoli.git]
/
lib
/
ecoli_node_cmd.c
diff --git
a/lib/ecoli_node_cmd.c
b/lib/ecoli_node_cmd.c
index
1750cab
..
d298c14
100644
(file)
--- a/
lib/ecoli_node_cmd.c
+++ b/
lib/ecoli_node_cmd.c
@@
-413,6
+413,8
@@
static void ec_node_cmd_free_priv(struct ec_node *gen_node)
struct ec_node_cmd *node = (struct ec_node_cmd *)gen_node;
size_t i;
+ /* node->cmd is freed automatically, because it is returned
+ * by ec_node_cmd_get_child() */
ec_free(node->cmd_str);
ec_node_free(node->expr);
ec_node_free(node->parser);