diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-07-27 06:49:30 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-07-27 06:49:30 +0000 |
commit | 323d50335423b02c9bec0c60ed492c0a7e602a83 (patch) | |
tree | 74743e21f3bba30eabd509d38cd29ddc35e6e3c7 /src | |
parent | 4d5304234f1e9b99fdb738e15f0d55fa53385e43 (diff) | |
download | hercules-323d50335423b02c9bec0c60ed492c0a7e602a83.tar.gz hercules-323d50335423b02c9bec0c60ed492c0a7e602a83.tar.bz2 hercules-323d50335423b02c9bec0c60ed492c0a7e602a83.tar.xz hercules-323d50335423b02c9bec0c60ed492c0a7e602a83.zip |
* Fixed a memory leak in mmo_auth_tosql (extra sql statement being allocated).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13002 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/login/account_sql.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/login/account_sql.c b/src/login/account_sql.c index 9bd5e292e..40b87829c 100644 --- a/src/login/account_sql.c +++ b/src/login/account_sql.c @@ -518,7 +518,6 @@ static bool mmo_auth_tosql(AccountDB_SQL* db, const struct mmo_account* acc, boo } else {// update account table - stmt = SqlStmt_Malloc(sql_handle); if( SQL_SUCCESS != SqlStmt_Prepare(stmt, "UPDATE `%s` SET `userid`=?,`user_pass`=?,`sex`=?,`email`=?,`level`=?,`state`=?,`unban_time`=?,`expiration_time`=?,`logincount`=?,`lastlogin`=?,`last_ip`=? WHERE `account_id` = '%d'", db->account_db, acc->account_id) || SQL_SUCCESS != SqlStmt_BindParam(stmt, 0, SQLDT_STRING, (void*)acc->userid, strlen(acc->userid)) || SQL_SUCCESS != SqlStmt_BindParam(stmt, 1, SQLDT_STRING, (void*)acc->pass, strlen(acc->pass)) |