summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-09-12 17:56:28 +0000
committerAndrey Nazarov <skuller@skuller.net>2010-09-12 17:56:28 +0000
commitdefd749fd3022ebd167b33ca968a8f38bf15a6cb (patch)
tree0416fae4a03d478bb59b3593849e23500acf35e2
parent57defac991fa739fdcdb9451a29614feb66a6874 (diff)
Fixed file handle leak in SV_BeginDownload_f.
-rw-r--r--source/sv_user.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/sv_user.c b/source/sv_user.c
index bbc673a..b4ba1be 100644
--- a/source/sv_user.c
+++ b/source/sv_user.c
@@ -696,6 +696,8 @@ static void SV_BeginDownload_f( void ) {
goto fail3;
}
+ FS_FCloseFile( f );
+
sv_client->download = download;
sv_client->downloadsize = downloadsize;
sv_client->downloadcount = offset;