Close the files after copy.

This commit is contained in:
Andreas Schneider 2008-06-18 16:30:00 +02:00
parent 8fa73bb8dd
commit 902b588d60

View file

@ -187,6 +187,14 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
}
}
ctx->replica = srep;
csync_vio_close(ctx, sfp);
sfp = NULL;
ctx->replica = drep;
csync_vio_close(ctx, dfp);
dfp = NULL;
/*
* Check filesize
*/