summaryrefslogtreecommitdiff
path: root/src/char_sql/int_mail.c
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 /src/char_sql/int_mail.c
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
Diffstat (limited to 'src/char_sql/int_mail.c')
-rw-r--r--src/char_sql/int_mail.c1
1 files changed, 1 insertions, 0 deletions
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