summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-28 13:13:16 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-28 13:13:16 +0300
commitd875f12e2dfba7caee51d9f6563ef80618f19448 (patch)
treeea3feee8351b798d14f5a5be4b86417b64b01a7b /src/map/clif.c
parent3bd77ffc0daca508352834add828766490075aee (diff)
downloadhercules-d875f12e2dfba7caee51d9f6563ef80618f19448.tar.gz
hercules-d875f12e2dfba7caee51d9f6563ef80618f19448.tar.bz2
hercules-d875f12e2dfba7caee51d9f6563ef80618f19448.tar.xz
hercules-d875f12e2dfba7caee51d9f6563ef80618f19448.zip
Fix memory leak in quest sending packet (closes #831)
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 95ad088e5..80703fa12 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -15529,6 +15529,7 @@ void clif_quest_send_list(struct map_session_data *sd)
}
packet->PacketLength = real_len;
clif->send(buf, real_len, &sd->bl, SELF);
+ aFree(buf);
}
/// Sends list of all quest missions (ZC_ALL_QUEST_MISSION).