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/modules/ns_noop_convert.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/modules/ns_noop_convert.c')
| -rw-r--r-- | src/modules/ns_noop_convert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/ns_noop_convert.c b/src/modules/ns_noop_convert.c index bc9a59d02..58513ef44 100644 --- a/src/modules/ns_noop_convert.c +++ b/src/modules/ns_noop_convert.c @@ -82,7 +82,7 @@ class NSNOOPConvert : public Module ~NSNOOPConvert() { if (NSAutoOPDBName) - free(NSAutoOPDBName); + delete [] NSAutoOPDBName; } }; @@ -117,7 +117,7 @@ int mLoadData(void) if ((na = findnick(name))) { na->nc->flags |= NI_AUTOOP; } - free(name); + delete [] name; } } } @@ -136,7 +136,7 @@ int mLoadConfig(int argc, char **argv) std::string tmp = config.ReadValue("ns_noop_convert", "database", DEFAULT_DB_NAME, 0); if (NSAutoOPDBName) - free(NSAutoOPDBName); + delete [] NSAutoOPDBName; NSAutoOPDBName = sstrdup(tmp.c_str()); |
