diff options
author | certus 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 |
---|---|---|
committer | certus 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 |
commit | 3808a70cd97bcc515d2f06b91adf639180a6eb34 (patch) | |
tree | 899c0df9b5e521316df91d0e6eefed4cd7191d69 | |
parent | 77059470fb1de95f36b3dcc1d759d377c531c9ae (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-- | Changes | 1 | ||||
-rw-r--r-- | src/modules.c | 4 | ||||
-rw-r--r-- | version.log | 4 |
3 files changed, 9 insertions, 0 deletions
@@ -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 |