Kaynağa Gözat

* Fixed a memory leak in mail_savemessage (src\char_sql\int_mail.c).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11807 54d463be-8e91-2dee-dedb-b68131a5f0ec
FlavioJS 17 yıl önce
ebeveyn
işleme
78571e990c
2 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 2 0
      Changelog-Trunk.txt
  2. 1 0
      src/char_sql/int_mail.c

+ 2 - 0
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

+ 1 - 0
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