You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/09/09 12:55:34 UTC
[lucy-commits] [2/3] git commit: refs/heads/cfish-string-prep1 - Fix memory leak in
QueryLexer
Fix memory leak in QueryLexer
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/2b462614
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/2b462614
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/2b462614
Branch: refs/heads/cfish-string-prep1
Commit: 2b462614b020020fdd1b8ea812e0108d501e5421
Parents: 1865dba
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Mon Sep 9 12:35:07 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Mon Sep 9 12:35:07 2013 +0200
----------------------------------------------------------------------
core/Lucy/Search/QueryParser/QueryLexer.c | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/2b462614/core/Lucy/Search/QueryParser/QueryLexer.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/QueryParser/QueryLexer.c b/core/Lucy/Search/QueryParser/QueryLexer.c
index 1073e98..af07f5f 100644
--- a/core/Lucy/Search/QueryParser/QueryLexer.c
+++ b/core/Lucy/Search/QueryParser/QueryLexer.c
@@ -155,6 +155,7 @@ QueryLexer_Tokenize_IMP(QueryLexer *self, const String *query_string) {
VA_Push(elems, (Obj*)elem);
}
+ DECREF(iter);
return elems;
}