summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-05-13 09:20:19 +0000
committercertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-05-13 09:20:19 +0000
commit3808a70cd97bcc515d2f06b91adf639180a6eb34 (patch)
tree899c0df9b5e521316df91d0e6eefed4cd7191d69
parent77059470fb1de95f36b3dcc1d759d377c531c9ae (diff)
# BUILD : 1.7.14 (1031) # BUGS : 504 # NOTES : fixed memleak, thx to trystan
git-svn-id: svn://svn.anope.org/anope/trunk@1031 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@755 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes1
-rw-r--r--src/modules.c4
-rw-r--r--version.log4
3 files changed, 9 insertions, 0 deletions
diff --git a/Changes b/Changes
index 52d2c67f4..7864e1367 100644
--- a/Changes
+++ b/Changes
@@ -6,6 +6,7 @@ Provided by Anope Dev. <dev@anope.org> - 2006
04/08 F Fixed SGLine stuff on inspircd (not supported). [#489]
04/20 F Fixed index of backtrace(). [#499]
04/29 F Added is_on_chan() check for fantasy kick commands. [#501]
+05/13 F Fixed memleak in moduleGetConfigDirective(). [#504]
Anope Version 1.7.14
--------------------
diff --git a/src/modules.c b/src/modules.c
index e929d5a6b..5f7d75020 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -2483,6 +2483,10 @@ int moduleGetConfigDirective(Directive * d)
retval = parse_directive(d, dir, ac, av, linenum, 0, s);
}
}
+ if (dir)
+ free(dir);
+ if (s)
+ free(s);
fclose(config);
return retval;
}
diff --git a/version.log b/version.log
index 4b937efb4..3e2a27f2d 100644
--- a/version.log
+++ b/version.log
@@ -13,6 +13,10 @@ VERSION_BUILD="1030"
# $Log$
#
+# BUILD : 1.7.14 (1031)
+# BUGS : 504
+# NOTES : fixed memleak, thx to trystan
+#
# BUILD : 1.7.14 (1030)
# BUGS :
# NOTES : fixed coding booboo, thx to viper