diff options
author | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-01 08:16:27 +0000 |
---|---|---|
committer | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-01 08:16:27 +0000 |
commit | b8b891cc25f5a5af6543ed317d76f3d88cf31f3b (patch) | |
tree | 97a9384b1d1d804ef4f9400a5293a7dff10fa43b /src/core/hs_on.c | |
parent | bec179c1977644e12fbe8610e876d0ed3be87057 (diff) |
Fixed some memory leaks when setting vhosts on users
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2399 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/hs_on.c')
-rw-r--r-- | src/core/hs_on.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hs_on.c b/src/core/hs_on.c index 5d102273c..bbae6f73e 100644 --- a/src/core/hs_on.c +++ b/src/core/hs_on.c @@ -39,7 +39,11 @@ class CommandHSOn : public Command notice_lang(s_HostServ, u, HOST_ACTIVATED, vHost); ircdproto->SendVhost(u->nick, vIdent, vHost); if (ircd->vhost) + { + if (u->vhost) + delete [] u->vhost; u->vhost = sstrdup(vHost); + } if (ircd->vident) { if (vIdent) |