summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Conway2006-07-14 00:32:46 +0000
committerNeil Conway2006-07-14 00:32:46 +0000
commit3c3c610c5724d81a520edf9d6555b827c8248779 (patch)
tree5fd0186abc1f0678bdd73b138340a9e23db8047b
parent79aabd140d2c8d182c7898a1d0b0607bbf4ed870 (diff)
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.
-rw-r--r--contrib/ltree/_ltree_gist.c2
1 files changed, 1 insertions, 1 deletions
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);
}