1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-18 17:42:25 +03:00

Fix leak patch that was using fclose() instead of close().

This commit is contained in:
Bruce Momjian
2010-09-28 21:37:14 +00:00
parent c767c3bd36
commit 0364ab8b26

View File

@ -75,7 +75,7 @@ copyAndUpdateFile(migratorContext *ctx, pageCnvCtx *pageConverter,
if ((dstfd = open(dst, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR)) < 0) 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"; return "can't create destination file";
} }