lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [2/3] git commit: refs/heads/cfish-string-prep1 - Fix memory leak in QueryLexer
Date Mon, 09 Sep 2013 10:55:34 GMT
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 <wellnhofer@aevum.de>
Authored: Mon Sep 9 12:35:07 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@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;
 }
 


Mime
View raw message