Skip to content

Commit 8e49135

Browse files
author
Nikita Glukhov
committed
Add PG_FREE_JSONB() to jsonb_out()
1 parent e46e50f commit 8e49135

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/utils/adt/jsonb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ jsonb_out(PG_FUNCTION_ARGS)
113113

114114
out = JsonToCString(JsonbRoot(jb), NULL);
115115

116+
PG_FREE_IF_COPY_JSONB(jb, 0);
117+
116118
PG_RETURN_CSTRING(out);
117119
}
118120

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