Skip to content

Commit 02db084

Browse files
author
Aleksander Alekseev
committed
Dont ignore repalloc return value. Reported by Tomas Vondra @tvondra
1 parent a7256fa commit 02db084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ jsonb_to_zson(PG_FUNCTION_ARGS)
530530

531531
encoded_size += VARHDRSZ + ZSON_HEADER_SIZE;
532532

533-
repalloc(encoded_buff, encoded_size);
533+
encoded_buff = repalloc(encoded_buff, encoded_size);
534534
SET_VARSIZE(encoded_buff, encoded_size);
535535
PG_RETURN_BYTEA_P(encoded_buff);
536536
}

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