projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95a5868
)
Memory leak fix - in case of error in use of position attribute.
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 3 Dec 2007 14:33:22 +0000
(14:33 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 3 Dec 2007 14:33:22 +0000
(14:33 +0000)
index/rpnsearch.c
patch
|
blob
|
history
diff --git
a/index/rpnsearch.c
b/index/rpnsearch.c
index
1a82f99
..
ed114a3
100644
(file)
--- a/
index/rpnsearch.c
+++ b/
index/rpnsearch.c
@@
-1,4
+1,4
@@
-/* $Id: rpnsearch.c,v 1.25 2007-12-03 13:04:04 adam Exp $
+/* $Id: rpnsearch.c,v 1.26 2007-12-03 14:33:22 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
@@
-1397,7
+1397,12
@@
static ZEBRA_RES rpn_search_APT_phrase(ZebraHandle zh,
rset_nmem, &first_set,
kc);
if (res != ZEBRA_OK)
+ {
+ int i;
+ for (i = 0; i<num_result_sets; i++)
+ rset_delete(result_sets[i]);
return res;
+ }
if (first_set)
{
RSET *nsets = nmem_malloc(stream,