Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commitb669293

Browse files
pg_dump: Set private_date pointer to NULL in callback
The end callback for ZStandard compression frees the private_databut didn't set the pointer to NULL after freeing. This is not abug as the code is right now, since nothing is dereferencing thepointer upon returning from the callback but it is good practiceto do.Author: Alexander Kuznetsov <kuznetsovam@altlinux.org>Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>Reviewed-by: Michael Paquier <michael@paquier.xyz>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/efaee52b-9550-44ca-8633-ea86076b3283@altlinux.org
1 parente4b0f86 commitb669293

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/bin/pg_dump/compress_zstd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ EndCompressorZstd(ArchiveHandle *AH, CompressorState *cs)
142142
/* output buffer may be allocated in either mode */
143143
pg_free(zstdcs->output.dst);
144144
pg_free(zstdcs);
145+
cs->private_data=NULL;
145146
}
146147

147148
staticvoid

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp