diff options
author | Haru <haru@dotalux.com> | 2015-08-28 02:45:20 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-09-08 10:28:09 +0200 |
commit | 860f4eb744af463dd4a0e7d11e7882973ccf1e44 (patch) | |
tree | 504474d504267378c41032fec51f3ee148e36edd /src/map/clif.c | |
parent | 1cfcb9df15419adf67353098c1c69b61f5c93baf (diff) | |
download | hercules-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/clif.c')
-rw-r--r-- | src/map/clif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 12565de3c..ac1052c71 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17101,8 +17101,8 @@ void clif_cashshop_db(void) { } } - libconfig->destroy(&cashshop_conf); } + libconfig->destroy(&cashshop_conf); ShowStatus("Done reading '"CL_WHITE"%d"CL_RESET"' entries in '"CL_WHITE"%s"CL_RESET"'.\n", item_count_t, config_filename); } /// Items that are in favorite tab of inventory (ZC_ITEM_FAVORITE). @@ -18092,8 +18092,8 @@ bool clif_parse_roulette_db(void) { } } - libconfig->destroy(&roulette_conf); } + libconfig->destroy(&roulette_conf); for(i = 0; i < MAX_ROULETTE_LEVEL; i++) { int limit = MAX_ROULETTE_COLUMNS-i; |