Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 88b0e84

Browse filesBrowse files
committed
Fix memory leak in jsonb_hash_value_ops.
1 parent 3dad856 commit 88b0e84
Copy full SHA for 88b0e84

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎jsonb_gin_ops.c

Copy file name to clipboardExpand all lines: jsonb_gin_ops.c
+2Lines changed: 2 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.