DISPATCH-731: fix an iterator leak

Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/e87c87a0
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/e87c87a0
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/e87c87a0

Branch: refs/heads/master
Commit: e87c87a087a17ef3d3cc4fddb7f58bfe7ed6853a
Parents: 2c80f10
Author: Kenneth Giusti <kgiu...@apache.org>
Authored: Tue Aug 8 13:24:36 2017 -0400
Committer: Kenneth Giusti <kgiu...@apache.org>
Committed: Tue Aug 8 13:24:36 2017 -0400

----------------------------------------------------------------------
 src/parse_tree.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/e87c87a0/src/parse_tree.c
----------------------------------------------------------------------
diff --git a/src/parse_tree.c b/src/parse_tree.c
index 3fe877a..9ba78c4 100644
--- a/src/parse_tree.c
+++ b/src/parse_tree.c
@@ -663,6 +663,7 @@ void *qd_parse_tree_remove_pattern(qd_parse_node_t *node,
     token_iterator_init(&key, str);
     rc = parse_node_remove_pattern(node, &key, str);
     free(str);
+    qd_iterator_free(dup);
     return rc;
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to