diff options
Diffstat (limited to 'src/map/magic-interpreter-base.c')
-rw-r--r-- | src/map/magic-interpreter-base.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/magic-interpreter-base.c b/src/map/magic-interpreter-base.c index 0ece700..9d21832 100644 --- a/src/map/magic-interpreter-base.c +++ b/src/map/magic-interpreter-base.c @@ -191,8 +191,11 @@ env_t *spell_create_env (magic_conf_t * conf, spell_t * spell, } case SPELLARG_NONE: + free (param); break; + default: + free (param); fprintf (stderr, "Unexpected spellarg type %d\n", spell->spellarg_ty); } |