Quellcode durchsuchen

Added missing memory finalization for client_hash_nodes linked list.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16772 54d463be-8e91-2dee-dedb-b68131a5f0ec
greenboxal2 vor 12 Jahren
Ursprung
Commit
26800e12ff
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  1. 8 0
      src/login/login.c

+ 8 - 0
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");