Skip to content
Snippets Groups Projects
Commit e30df619 authored by Teodor Sigaev's avatar Teodor Sigaev
Browse files

Fix stupid mistake in rank_cd_def cleanup

parent 84869213
No related branches found
No related tags found
No related merge requests found
...@@ -748,8 +748,8 @@ rank_cd_def(PG_FUNCTION_ARGS) ...@@ -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); 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(txt, 0);
PG_FREE_IF_COPY(query, 2); PG_FREE_IF_COPY(query, 1);
PG_RETURN_FLOAT4(res); PG_RETURN_FLOAT4(res);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment