summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2010-08-22 23:10:45 -0400
committerMadCamel <madcamel@gmail.com>2010-08-22 23:10:45 -0400
commit819525a030a1e66c9de6fe67b15f4f57ff932651 (patch)
treecd81a32921ca7c69d47744ceb27b4b67f52d2404 /src/char/char.c
parentb20e8a4006cbebc90d87bba445a093f494da8c7e (diff)
downloadtmwa-819525a030a1e66c9de6fe67b15f4f57ff932651.tar.gz
tmwa-819525a030a1e66c9de6fe67b15f4f57ff932651.tar.bz2
tmwa-819525a030a1e66c9de6fe67b15f4f57ff932651.tar.xz
tmwa-819525a030a1e66c9de6fe67b15f4f57ff932651.zip
Fixed leaking of file descriptors in login and map server when their logfiles are too large.
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index fefc420..5373bec 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -141,9 +141,8 @@ int char_log (char *fmt, ...)
sprintf (tmpstr + 19, ".%03d: %s", (int) tv.tv_usec / 1000, fmt);
vfprintf (logfp, tmpstr, ap);
}
- fclose_ (logfp);
}
-
+ fclose_ (logfp);
va_end (ap);
return 0;
}