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

jsonb_gin_ops.c

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy