1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 10:46:38 +02:00

Removing one free too much..

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1882 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
jantje_85
2008-12-29 22:02:38 +00:00
parent a66a6cdd79
commit 47fb48706c
-4
View File
@@ -1930,7 +1930,6 @@ Entry *entry_create(char *mask)
{
Entry *entry;
char *nick = NULL, *user, *host, *cidrhost;
int do_free = 0;
uint32 ip, cidr;
entry = new Entry;
@@ -1997,7 +1996,6 @@ Entry *entry_create(char *mask)
entry->cidr_mask = cidr;
entry->type |= ENTRYTYPE_CIDR4;
host = cidrhost;
do_free = 1;
} else if (ircd->cidrchanbei && strchr(host, '/')) {
/* Most IRCd's don't enforce sane bans therefore it is not
* so unlikely we will encounter this.
@@ -2017,8 +2015,6 @@ Entry *entry_create(char *mask)
}
}
delete [] mask;
if (do_free)
delete [] host;
return entry;
}