diff options
author | gumi <mekolat@users.noreply.github.com> | 2017-06-06 14:37:13 -0400 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2017-06-09 12:03:47 -0400 |
commit | fef66e035cb4575fe991c72e19d488e14d67552b (patch) | |
tree | 01744add27ced9eb6e8441bfe94ab35c018addfd /src/map | |
parent | da7d6772a1f4121f17b7785ab32ded842c3750ef (diff) | |
download | hercules-fef66e035cb4575fe991c72e19d488e14d67552b.tar.gz hercules-fef66e035cb4575fe991c72e19d488e14d67552b.tar.bz2 hercules-fef66e035cb4575fe991c72e19d488e14d67552b.tar.xz hercules-fef66e035cb4575fe991c72e19d488e14d67552b.zip |
fix another memory leak introduced by 5ceccb7
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index b22c88cfe..5bdda8512 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -21690,6 +21690,8 @@ BUILDIN(unbindatcmd) ARR_FIND(0, atcommand->binding_count, i, strcmp(atcommand->binding[i]->command, atcmd) == 0); if( i < atcommand->binding_count ) { int cursor = 0; + aFree(atcommand->binding[i]->at_groups); + aFree(atcommand->binding[i]->char_groups); aFree(atcommand->binding[i]); atcommand->binding[i] = NULL; /* compact the list now that we freed a slot somewhere */ |