summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-06-06 14:37:13 -0400
committergumi <mekolat@users.noreply.github.com>2017-06-09 12:03:47 -0400
commitfef66e035cb4575fe991c72e19d488e14d67552b (patch)
tree01744add27ced9eb6e8441bfe94ab35c018addfd /src
parentda7d6772a1f4121f17b7785ab32ded842c3750ef (diff)
downloadhercules-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')
-rw-r--r--src/map/script.c2
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 */