From fef66e035cb4575fe991c72e19d488e14d67552b Mon Sep 17 00:00:00 2001 From: gumi Date: Tue, 6 Jun 2017 14:37:13 -0400 Subject: fix another memory leak introduced by 5ceccb7 --- src/map/script.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 */ -- cgit v1.2.3-60-g2f50