summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index cd70167bd..61527cadb 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1703,6 +1703,8 @@ int map_quit(struct map_session_data *sd) {
if(charsave_method)
{ //Let player be free'd on closing the connection.
idb_remove(pc_db,sd->status.account_id);
+ if (!(sd->fd && session[sd->fd]->session_data))
+ aFree(sd); //In case player was not attached to session.
return 0;
}
#endif