Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e30df61

Browse files
committed
Fix stupid mistake in rank_cd_def cleanup
1 parent 8486921 commit e30df61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/tsearch2/rank.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,8 @@ rank_cd_def(PG_FUNCTION_ARGS)
748748

749749
res = calc_rank_cd( weights, txt, query, (PG_NARGS() == 3) ? PG_GETARG_DATUM(2) : DEF_NORM_METHOD);
750750

751-
PG_FREE_IF_COPY(txt, 1);
752-
PG_FREE_IF_COPY(query, 2);
751+
PG_FREE_IF_COPY(txt, 0);
752+
PG_FREE_IF_COPY(query, 1);
753753

754754
PG_RETURN_FLOAT4(res);
755755
}

0 commit comments

Comments
 (0)