mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
Fix leak patch that was using fclose() instead of close().
This commit is contained in:
parent
c767c3bd36
commit
0364ab8b26
@ -75,7 +75,7 @@ copyAndUpdateFile(migratorContext *ctx, pageCnvCtx *pageConverter,
|
||||
|
||||
if ((dstfd = open(dst, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR)) < 0)
|
||||
{
|
||||
fclose(src_fd);
|
||||
close(src_fd);
|
||||
return "can't create destination file";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user