diff options
-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 |