diff options
Diffstat (limited to 'src/map/script.c')
-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 68c3f2fbc..0b6f0f71c 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -15453,6 +15453,8 @@ static BUILDIN(atcommand) if (!atcommand->exec(fd, sd, cmd, false)) { ShowWarning("script: buildin_atcommand: failed to execute command '%s'\n", cmd); + if (dummy_sd != NULL) + aFree(dummy_sd); return false; } if (dummy_sd) aFree(dummy_sd); |