summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-28 18:53:56 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-28 18:53:56 +0000
commit14b2597ebb945eba4e763d498bc99287d178ee77 (patch)
tree8041b5436b49b93d984daa3e06f38a54371269f3 /src/char_sql/char.c
parent29b8d9d94f79154c992a65ea05a7a2f550fe91f8 (diff)
downloadhercules-14b2597ebb945eba4e763d498bc99287d178ee77.tar.gz
hercules-14b2597ebb945eba4e763d498bc99287d178ee77.tar.bz2
hercules-14b2597ebb945eba4e763d498bc99287d178ee77.tar.xz
hercules-14b2597ebb945eba4e763d498bc99287d178ee77.zip
* 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
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c2
1 files changed, 1 insertions, 1 deletions
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;
}