diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-22 01:11:19 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-22 01:11:19 +0000 |
commit | 16e667a2cecf9492954333fc7949b6636072f941 (patch) | |
tree | 746164afdc56c0a30dea0f1736c4129c1f1ad422 /src/core/ns_set.c | |
parent | 1532aa675f7c28b8ff0061ebc21f374d36d89d65 (diff) |
Replaced most uses of smalloc and scalloc with new, replaced most uses of free with delete.
NOTE: This build is unstable due to lack of memory zeroing, this will be addresses in a future commit.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1783 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/ns_set.c')
-rw-r--r-- | src/core/ns_set.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/ns_set.c b/src/core/ns_set.c index b6c91b281..4267f46b2 100644 --- a/src/core/ns_set.c +++ b/src/core/ns_set.c @@ -6,8 +6,8 @@ * Please read COPYING and README for further details. * * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - * + * Based on the original code of Services by Andy Church. + * * $Id$ * */ @@ -233,7 +233,7 @@ int do_set_language(User * u, NickCore * nc, char *param) int do_set_url(User * u, NickCore * nc, char *param) { if (nc->url) - free(nc->url); + delete [] nc->url; if (param) { nc->url = sstrdup(param); @@ -260,7 +260,7 @@ int do_set_email(User * u, NickCore * nc, char *param) (nc->email ? nc->email : "none"), (param ? param : "none")); if (nc->email) - free(nc->email); + delete [] nc->email; if (param) { nc->email = sstrdup(param); @@ -292,7 +292,7 @@ int do_set_icq(User * u, NickCore * nc, char *param) int do_set_greet(User * u, NickCore * nc, char *param) { if (nc->greet) - free(nc->greet); + delete [] nc->greet; if (param) { char buf[BUFSIZE]; |