mirror of
https://github.com/anope/anope.git
synced 2026-07-10 21:03:13 +02:00
BUILD : 1.7.21 (1381) BUGS : 868 NOTES : Fixed memory leak in add_akill().
git-svn-id: svn://svn.anope.org/anope/trunk@1381 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1096 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
c2411bef50
commit
2c82302421
@@ -33,6 +33,7 @@ Anope Version S V N
|
||||
02/07 F findchan() debug messages not being logical. [#857]
|
||||
02/07 F NickServ replying to SVSNICK command when OperServ must. [#861]
|
||||
02/11 F Fixed configure script so it will complain about args. [#864]
|
||||
02/11 F Fixed memory leak in add_akill(). [#868]
|
||||
|
||||
Provided by Johno Crawford <johno.crawford@gmail.com> - 2008
|
||||
02/08 F x86_64 generating improper SHA1 hash values. [#856]
|
||||
|
||||
+9
-2
@@ -793,15 +793,22 @@ int add_akill(User * u, char *mask, const char *by, const time_t expires,
|
||||
/* We can now (really) add the AKILL. */
|
||||
mask2 = sstrdup(mask);
|
||||
host = strchr(mask2, '@');
|
||||
if (!host)
|
||||
|
||||
if (!host) {
|
||||
free(mask2);
|
||||
return -1;
|
||||
}
|
||||
|
||||
user = mask2;
|
||||
*host = 0;
|
||||
host++;
|
||||
|
||||
entry = scalloc(sizeof(Akill), 1);
|
||||
if (!entry)
|
||||
|
||||
if (!entry) {
|
||||
free(mask2);
|
||||
return -1;
|
||||
}
|
||||
|
||||
entry->user = sstrdup(user);
|
||||
entry->host = sstrdup(host);
|
||||
|
||||
+5
-1
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="21"
|
||||
VERSION_EXTRA="-svn"
|
||||
VERSION_BUILD="1380"
|
||||
VERSION_BUILD="1381"
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.21 (1381)
|
||||
# BUGS : 868
|
||||
# NOTES : Fixed memory leak in add_akill().
|
||||
#
|
||||
# BUILD : 1.7.21 (1380)
|
||||
# BUGS : 864
|
||||
# NOTES : Fixed configure script so it will complain about args.
|
||||
|
||||
Reference in New Issue
Block a user