Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)