lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [3/3] git commit: refs/heads/cfish-string-prep1 - Fix memory leak in Highlighter
Date Mon, 09 Sep 2013 10:55:35 GMT
Fix memory leak in Highlighter


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

Branch: refs/heads/cfish-string-prep1
Commit: b0f30521d919e53ee3ad8ce9c9c3e60987436b2c
Parents: 2b46261
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Mon Sep 9 12:48:25 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Mon Sep 9 12:48:25 2013 +0200

----------------------------------------------------------------------
 core/Lucy/Highlight/Highlighter.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/b0f30521/core/Lucy/Highlight/Highlighter.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Highlight/Highlighter.c b/core/Lucy/Highlight/Highlighter.c
index 5a7f13f..637fd81 100644
--- a/core/Lucy/Highlight/Highlighter.c
+++ b/core/Lucy/Highlight/Highlighter.c
@@ -533,6 +533,7 @@ Highlighter_Highlight_Excerpt_IMP(Highlighter *self, VArray *spans,
         CB_Cat(buf, hl_frag);
         DECREF(hl_frag);
         DECREF(encoded);
+        DECREF(to_cat);
     }
 
     // Last text, beyond last highlight span.


Mime
View raw message