1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-22 23:02:54 +03:00

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

This commit is contained in:
Bruce Momjian 2010-09-28 21:27:32 +00:00
parent f175884520
commit a1bb570de9

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";
} }