From 16e667a2cecf9492954333fc7949b6636072f941 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Sat, 22 Nov 2008 01:11:19 +0000 Subject: 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 --- src/core/ms_del.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/ms_del.c') diff --git a/src/core/ms_del.c b/src/core/ms_del.c index 0924dd7d8..fb620a013 100644 --- a/src/core/ms_del.c +++ b/src/core/ms_del.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$ * */ @@ -135,7 +135,7 @@ int do_del(User * u) } else { /* Delete all memos. */ for (i = 0; i < mi->memocount; i++) { - free(mi->memos[i].text); + delete [] mi->memos[i].text; } free(mi->memos); mi->memos = NULL; -- cgit