summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-26 03:25:34 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-26 03:25:34 +0000
commit0992d2bd872ba93653f3af9a8233f6133fe8455c (patch)
tree027d2221726b0595f051d742f0269a63c11fff48
parent2dc30378ce5a5c2d0390e30b110643c2f1f9be75 (diff)
downloadhercules-0992d2bd872ba93653f3af9a8233f6133fe8455c.tar.gz
hercules-0992d2bd872ba93653f3af9a8233f6133fe8455c.tar.bz2
hercules-0992d2bd872ba93653f3af9a8233f6133fe8455c.tar.xz
hercules-0992d2bd872ba93653f3af9a8233f6133fe8455c.zip
* 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
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/char_sql/int_mail.c1
2 files changed, 3 insertions, 0 deletions
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