From 0992d2bd872ba93653f3af9a8233f6133fe8455c Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Mon, 26 Nov 2007 03:25:34 +0000 Subject: * Fixed a memory leak in mail_savemessage (src\char_sql\int_mail.c). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11807 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 2 ++ src/char_sql/int_mail.c | 1 + 2 files changed, 3 insertions(+) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index f9167eaa7..42c756fe8 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,8 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2007/11/26 + * Fixed a memory leak in mail_savemessage (src\char_sql\int_mail.c). [FlavioJS] 2007/11/25 * Rev. 11804 Giant Fly Wings are now blocked on noteleport maps and duels. [L0ne_W0lf] 2007/11/24 diff --git a/src/char_sql/int_mail.c b/src/char_sql/int_mail.c index 1a49f787f..20db63d30 100644 --- a/src/char_sql/int_mail.c +++ b/src/char_sql/int_mail.c @@ -133,6 +133,7 @@ static int mail_savemessage(struct mail_message* msg) } else j = (int)SqlStmt_LastInsertId(stmt); + SqlStmt_Free(stmt); StringBuf_Destroy(&buf); // return the ID of the new mail -- cgit v1.2.3-70-g09d2