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

Commitb6948e1

Browse files
committed
pg_restore: Fix memory and file descriptor leak with directory format
found by Coverity
1 parent805f798 commitb6948e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/bin/pg_dump/pg_backup_directory.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,9 @@ _PrintFileData(ArchiveHandle *AH, char *filename, RestoreOptions *ropt)
365365
ahwrite(buf,1,cnt,AH);
366366

367367
free(buf);
368+
if (cfclose(cfp)!=0)
369+
die_horribly(AH,modulename,"could not close data file: %s\n",
370+
strerror(errno));
368371
}
369372

370373
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp