Skip to content

Commit 88b0e84

Browse files
committed
Fix memory leak in jsonb_hash_value_ops.
1 parent 3dad856 commit 88b0e84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: jsonb_gin_ops.c

+2
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,8 @@ gin_compare_jsonb_hash_value(PG_FUNCTION_ARGS)
868868
{
869869
result = compare_gin_key_value(arg1, arg2);
870870
}
871+
PG_FREE_IF_COPY(arg1, 0);
872+
PG_FREE_IF_COPY(arg2, 1);
871873
PG_RETURN_INT32(result);
872874
}
873875

0 commit comments

Comments
 (0)