summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-22 21:14:51 +0000
committercodemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-22 21:14:51 +0000
commit35d04360dc108cf2faa184030645c6875a0009e5 (patch)
tree5584bee457e3d207d634822af735d31af05b3e6c
parent145e0cc5661bb3a65b47d6d2384b134c5bafca95 (diff)
downloadhercules-35d04360dc108cf2faa184030645c6875a0009e5.tar.gz
hercules-35d04360dc108cf2faa184030645c6875a0009e5.tar.bz2
hercules-35d04360dc108cf2faa184030645c6875a0009e5.tar.xz
hercules-35d04360dc108cf2faa184030645c6875a0009e5.zip
Added free()'s
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@328 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/login/login.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/login/login.c b/src/login/login.c
index b28a48a51..28cfafce9 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -3828,12 +3828,16 @@ void do_final(void) {
if(auth_dat) free(auth_dat);
if(gm_account_db) free(gm_account_db);
+ if(access_ladmin_allow) free(access_ladmin_allow);
+ if(access_allow) free(access_allow);
+ if(access_deny) free(access_deny);
for (i = 0; i < MAX_SERVERS; i++) {
if ((fd = server_fd[i]) >= 0) {
server_fd[i] = -1;
memset(&server[i], 0, sizeof(struct mmo_char_server));
close(fd);
delete_session(fd);
+ if(session[fd]->session_data) free(session[fd]->session_data);
}
}
close(login_fd);