Fix stupid mistake in rank_cd_def cleanup

This commit is contained in:
Teodor Sigaev 2006-04-10 09:56:52 +00:00
parent 848692131a
commit e30df619cd
1 changed files with 2 additions and 2 deletions

View File

@ -748,8 +748,8 @@ rank_cd_def(PG_FUNCTION_ARGS)
res = calc_rank_cd( weights, txt, query, (PG_NARGS() == 3) ? PG_GETARG_DATUM(2) : DEF_NORM_METHOD);
PG_FREE_IF_COPY(txt, 1);
PG_FREE_IF_COPY(query, 2);
PG_FREE_IF_COPY(txt, 0);
PG_FREE_IF_COPY(query, 1);
PG_RETURN_FLOAT4(res);
}