diff options
author | greenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-09-10 19:32:29 +0000 |
---|---|---|
committer | greenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-09-10 19:32:29 +0000 |
commit | 72f7c891fd5b2bca64b8f366bced65ca568f77c2 (patch) | |
tree | 322878dd63845793d367e11ce01a34dce4a8edb3 /src/login | |
parent | 224d7e056466204a92f96a3d1324bc6ec0386dec (diff) | |
download | hercules-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
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/login.c | 8 |
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"); |