projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f175884
)
Fix leak patch that was using fclose() instead of close().
author
Bruce Momjian
<bruce@momjian.us>
Tue, 28 Sep 2010 21:27:32 +0000
(21:27 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Tue, 28 Sep 2010 21:27:32 +0000
(21:27 +0000)
contrib/pg_upgrade/file.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_upgrade/file.c
b/contrib/pg_upgrade/file.c
index 473b029d0ae537f5a713eb4bb6e5c69f8af36e26..983a2b2d9887da37e3540703f729679f0e4faf9c 100644
(file)
--- a/
contrib/pg_upgrade/file.c
+++ b/
contrib/pg_upgrade/file.c
@@
-75,7
+75,7
@@
copyAndUpdateFile(migratorContext *ctx, pageCnvCtx *pageConverter,
if ((dstfd = open(dst, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR)) < 0)
{
-
f
close(src_fd);
+ close(src_fd);
return "can't create destination file";
}