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 /src/modules.c | |
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
Diffstat (limited to 'src/modules.c')
-rw-r--r-- | src/modules.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |