From: Neil Conway Date: Fri, 14 Jul 2006 00:32:46 +0000 (+0000) Subject: A recent backpatch to 7.3's contrib/ltree got mixed up, putting code in X-Git-Tag: REL7_3_16~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c3c610c5724d81a520edf9d6555b827c8248779;p=thirdparty%2Fpostgresql.git A recent backpatch to 7.3's contrib/ltree got mixed up, putting code in the wrong place. This moves it to the right place which allows it to compile. Patch from Kris Jurka. --- diff --git a/contrib/ltree/_ltree_gist.c b/contrib/ltree/_ltree_gist.c index a236058ecec..d065f396370 100644 --- a/contrib/ltree/_ltree_gist.c +++ b/contrib/ltree/_ltree_gist.c @@ -609,7 +609,6 @@ gist_qe(ltree_gist * key, lquery * query) curq = LQL_NEXT(curq); qlen--; } - PG_FREE_IF_COPY(query,1); return true; } @@ -645,5 +644,6 @@ _ltree_consistent(PG_FUNCTION_ARGS) default: elog(ERROR, "Unknown StrategyNumber: %d", strategy); } + PG_FREE_IF_COPY(query,1); PG_RETURN_BOOL(res); }