You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2010/12/29 22:21:39 UTC
[lucy-commits] svn commit: r1053741 - /incubator/lucy/trunk/core/Lucy/Search/QueryParser.c
Author: marvin
Date: Wed Dec 29 21:21:37 2010
New Revision: 1053741
URL: http://svn.apache.org/viewvc?rev=1053741&view=rev
Log:
Fix a memory leak in QueryParser which originated with the stoplist bugfix.
Modified:
incubator/lucy/trunk/core/Lucy/Search/QueryParser.c
Modified: incubator/lucy/trunk/core/Lucy/Search/QueryParser.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/core/Lucy/Search/QueryParser.c?rev=1053741&r1=1053740&r2=1053741&view=diff
==============================================================================
--- incubator/lucy/trunk/core/Lucy/Search/QueryParser.c (original)
+++ incubator/lucy/trunk/core/Lucy/Search/QueryParser.c Wed Dec 29 21:21:37 2010
@@ -819,6 +819,9 @@ QParser_expand(QueryParser *self, Query
if (fails) {
VA_Push(new_kids, (Obj*)new_child);
}
+ else {
+ DECREF(new_child);
+ }
}
else {
VA_Push(new_kids, (Obj*)new_child);