From 73df203735a6c62741099a8f228f5e4dc63b03f2 Mon Sep 17 00:00:00 2001 From: toms Date: Mon, 14 Apr 2008 15:01:04 +0000 Subject: [PATCH] Fixed a memory leak in mapif_quests_fromsql git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12592 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/char_sql/int_quest.c | 3 +-- src/char_sql/int_quest.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 422294e54c..0a3815cf5c 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. 2008/04/14 + * Fixed a memory leak in mapif_quests_fromsql [Toms] * Fixed a typo in char_sql/char.c [Toms] * Fixed a bug in the disconnection part char-server (not sending you offline) [Toms] * Changes to the configure script: [FlavioJS] diff --git a/src/char_sql/int_quest.c b/src/char_sql/int_quest.c index 86ebccdae9..e198754f65 100644 --- a/src/char_sql/int_quest.c +++ b/src/char_sql/int_quest.c @@ -69,8 +69,7 @@ int mapif_quests_fromsql(int char_id, struct quest questlog[]) questlog[i].num_objectives = j; } - - + SqlStmt_Free(stmt); return count; } diff --git a/src/char_sql/int_quest.h b/src/char_sql/int_quest.h index 2b7df67dda..f2a0b626ed 100644 --- a/src/char_sql/int_quest.h +++ b/src/char_sql/int_quest.h @@ -9,4 +9,5 @@ struct quest; int inter_quest_parse_frommap(int fd); -#endif \ No newline at end of file +#endif +