summaryrefslogtreecommitdiff
path: root/src/map/quest.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-08-28 02:45:20 +0200
committerHaru <haru@dotalux.com>2015-09-08 10:28:09 +0200
commit860f4eb744af463dd4a0e7d11e7882973ccf1e44 (patch)
tree504474d504267378c41032fec51f3ee148e36edd /src/map/quest.c
parent1cfcb9df15419adf67353098c1c69b61f5c93baf (diff)
downloadhercules-860f4eb744af463dd4a0e7d11e7882973ccf1e44.tar.gz
hercules-860f4eb744af463dd4a0e7d11e7882973ccf1e44.tar.bz2
hercules-860f4eb744af463dd4a0e7d11e7882973ccf1e44.tar.xz
hercules-860f4eb744af463dd4a0e7d11e7882973ccf1e44.zip
Fixed some memory leaks in code using libconfig
- Special thanks to Dastgir Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/quest.c')
-rw-r--r--src/map/quest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/quest.c b/src/map/quest.c
index ddbd2f92d..fe4014ae5 100644
--- a/src/map/quest.c
+++ b/src/map/quest.c
@@ -529,6 +529,7 @@ int quest_read_db(void)
count++;
}
+ libconfig->destroy(&quest_db_conf);
ShowStatus("Done reading '"CL_WHITE"%d"CL_RESET"' entries in '"CL_WHITE"%s"CL_RESET"'.\n", count, filename);
return count;
}