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
1 changed files with 1 additions and 1 deletions

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)
{
fclose(src_fd);
close(src_fd);
return "can't create destination file";
}