diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-29 22:21:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-29 22:37:40 +0300 |
commit | 50848cc7f79aa516351e4a4d673df53f4881eb4d (patch) | |
tree | b984fabb9019b7ca4549f1ab45c64a766160cf7c /src/char/char.c | |
parent | cb3e2f5f3b91d0a1f7711eff9c10ae9a655a74f2 (diff) | |
download | hercules-50848cc7f79aa516351e4a4d673df53f4881eb4d.tar.gz hercules-50848cc7f79aa516351e4a4d673df53f4881eb4d.tar.bz2 hercules-50848cc7f79aa516351e4a4d673df53f4881eb4d.tar.xz hercules-50848cc7f79aa516351e4a4d673df53f4881eb4d.zip |
Fix memory leak in storage item vector (Fixes #1751)
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c index 487bec763..5a5a0d7f2 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -296,7 +296,7 @@ void char_set_char_offline(int char_id, int account_id) idb_remove(chr->char_db_,char_id); if (stor) /* Remove inter-storage data. */ - idb_remove(inter_storage->account_storage, account_id); + inter_storage->delete_account_storage(account_id); if( SQL_ERROR == SQL->Query(inter->sql_handle, "UPDATE `%s` SET `online`='0' WHERE `char_id`='%d' LIMIT 1", char_db, char_id) ) Sql_ShowDebug(inter->sql_handle); |