From fcd97e7fade4354d3949426ca255732d58b55b97 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 Mar 2015 22:18:51 +0300 Subject: map: in online list remove temp buffer always. --- src/map/map.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index 8b0fd6a..a4376fe 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -57,19 +57,25 @@ void emap_online_list(int fd) struct SessionExt *data1 = session_get(fd); if (!data1) + { + aFree(buf); return; + } const time_t t = time(NULL); if (data1->onlinelistlasttime + 15 >= t) { // not more than 1 per 15 seconds data1->onlinelistlasttime = t; + aFree(buf); return; } struct map_session_data* ssd = (struct map_session_data*)session[fd]->session_data; if (!ssd) + { + aFree(buf); return; - + } const bool showVersion = pc_has_permission(ssd, permission_show_client_version_flag); const int gpoupLevel = pc_get_group_level(ssd); -- cgit v1.2.3-70-g09d2