Fix leak patch that was using fclose() instead of close().
This commit is contained in:
parent
f175884520
commit
a1bb570de9
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue