From 14b2597ebb945eba4e763d498bc99287d178ee77 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Fri, 28 Dec 2007 18:53:56 +0000 Subject: * Fixed a memory leak in memitemdata_to_sql. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11989 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/char_sql/char.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 8a410a697..25a85d1fe 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2007/12/28 + * Fixed a memory leak in memitemdata_to_sql. * Reverted a bad modification in clif_produceeffect from r11290. [FlavioJS] 2007/12/27 * Removed an incorrect range check and fixed a copypaste typo which diff --git a/src/char_sql/char.c b/src/char_sql/char.c index cf6ea56e7..1c048b555 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -720,7 +720,7 @@ int memitemdata_to_sql(const struct item items[], int max, int id, int tableswit { SqlStmt_ShowDebug(stmt); SqlStmt_Free(stmt); - StringBuf_Clear(&buf); + StringBuf_Destroy(&buf); return 1; } -- cgit v1.2.3-70-g09d2