summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-10 19:32:29 +0000
committergreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-10 19:32:29 +0000
commit72f7c891fd5b2bca64b8f366bced65ca568f77c2 (patch)
tree322878dd63845793d367e11ce01a34dce4a8edb3
parent224d7e056466204a92f96a3d1324bc6ec0386dec (diff)
downloadhercules-72f7c891fd5b2bca64b8f366bced65ca568f77c2.tar.gz
hercules-72f7c891fd5b2bca64b8f366bced65ca568f77c2.tar.bz2
hercules-72f7c891fd5b2bca64b8f366bced65ca568f77c2.tar.xz
hercules-72f7c891fd5b2bca64b8f366bced65ca568f77c2.zip
Added missing memory finalization for client_hash_nodes linked list.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16772 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/login/login.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/login/login.c b/src/login/login.c
index a0a34f36d..78c77ab18 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -1751,6 +1751,14 @@ static AccountDB* get_account_engine(void)
void do_final(void)
{
int i;
+ struct client_hash_node *hn = login_config.client_hash_nodes;
+
+ while (hn)
+ {
+ struct client_hash_node *tmp = hn;
+ hn = hn->next;
+ aFree(tmp);
+ }
login_log(0, "login server", 100, "login server shutdown");
ShowStatus("Terminating...\n");