diff options
author | gumi <mekolat@users.noreply.github.com> | 2017-06-05 12:43:01 -0400 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2017-06-05 14:14:08 -0400 |
commit | 2f2fe7faf7456edb7e39c2c887d1dc7d2ba3b577 (patch) | |
tree | 9e22c1fed5740876a371fb5e2c50308dee7d0e70 /src/map/script.c | |
parent | 10cb83a30cc50d757e05924fb29c11fc68abda49 (diff) | |
download | hercules-2f2fe7faf7456edb7e39c2c887d1dc7d2ba3b577.tar.gz hercules-2f2fe7faf7456edb7e39c2c887d1dc7d2ba3b577.tar.bz2 hercules-2f2fe7faf7456edb7e39c2c887d1dc7d2ba3b577.tar.xz hercules-2f2fe7faf7456edb7e39c2c887d1dc7d2ba3b577.zip |
fix memory leak introduced by 5ceccb7
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index 01bd4d9b5..b22c88cfe 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5033,6 +5033,8 @@ void do_final_script(void) aFree(script->str_buf); for( i = 0; i < atcommand->binding_count; i++ ) { + aFree(atcommand->binding[i]->at_groups); + aFree(atcommand->binding[i]->char_groups); aFree(atcommand->binding[i]); } @@ -5567,6 +5569,8 @@ int script_reload(void) script->label_count = 0; for( i = 0; i < atcommand->binding_count; i++ ) { + aFree(atcommand->binding[i]->at_groups); + aFree(atcommand->binding[i]->char_groups); aFree(atcommand->binding[i]); } |