diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/bs_fantasy_seen.c | 2 | ||||
| -rw-r--r-- | src/core/bs_fantasy_unban.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/bs_fantasy_seen.c b/src/core/bs_fantasy_seen.c index d7548f117..75abdd26b 100644 --- a/src/core/bs_fantasy_seen.c +++ b/src/core/bs_fantasy_seen.c @@ -131,6 +131,8 @@ int do_fantasy(int argc, char **argv) target); anope_cmd_privmsg(ci->bi->nick, ci->name, "%s", buf); } + /* free myStrGetToken(ed) variable target (#851) */ + Anope_Free(target); } return MOD_CONT; diff --git a/src/core/bs_fantasy_unban.c b/src/core/bs_fantasy_unban.c index 7f0bc7f5a..a17e06551 100644 --- a/src/core/bs_fantasy_unban.c +++ b/src/core/bs_fantasy_unban.c @@ -73,6 +73,9 @@ int do_fantasy(int argc, char **argv) common_unban(ci, u->nick); else common_unban(ci, target); + + /* free target if needed (#852) */ + Anope_Free(target); } return MOD_CONT; |
