summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index a09b929..4f48a67 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7170,8 +7170,10 @@ void clif_parse_GlobalMessage (int fd, struct map_session_data *sd)
if (magic_message(sd, buf, msg_len) == 0)
{
- if (tmw_CheckChatSpam (sd, RFIFOP (fd, 4)))
+ if (tmw_CheckChatSpam (sd, RFIFOP (fd, 4))) {
+ free(buf);
return;
+ }
clif_send (buf, WBUFW (buf, 2), &sd->bl,
sd->chatID ? CHAT_WOS : AREA_CHAT_WOC);