From d58c970cc76247dc3f7f263bf235daf6177695af Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 3 Dec 2007 14:33:22 +0000 Subject: [PATCH] Memory leak fix - in case of error in use of position attribute. --- index/rpnsearch.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index/rpnsearch.c b/index/rpnsearch.c index 1a82f99..ed114a3 100644 --- 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