Skip to content

Navigation Menu

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 02db084

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

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎zson.c

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