[asterisk-commits] mjordan: branch 1.8 r375758 - /branches/1.8/main/xmldoc.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Nov 3 19:54:22 CDT 2012
Author: mjordan
Date: Sat Nov 3 19:54:19 2012
New Revision: 375758
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=375758
Log:
Fix memory leak when unloading XML documentation
This patch is a modified version of a patch originally committed for the
Asterisk 11 branch in r375756. A portion of that patch, that fixed the
memory leak during unloading XML documentation, applies to branches 1.8
and 10 as well.
The patch for this issue was modified for these two branches.
(issue ASTERISK-20648)
Reported by: Corey Farrell
Tested by: mjordan
patches:
xmldoc-memory_leak.patch uploaded by Corey Farrell (license 5909)
Modified:
branches/1.8/main/xmldoc.c
Modified: branches/1.8/main/xmldoc.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/xmldoc.c?view=diff&rev=375758&r1=375757&r2=375758
==============================================================================
--- branches/1.8/main/xmldoc.c (original)
+++ branches/1.8/main/xmldoc.c Sat Nov 3 19:54:19 2012
@@ -1944,6 +1944,7 @@
while ((doctree = AST_RWLIST_REMOVE_HEAD(&xmldoc_tree, entry))) {
ast_free(doctree->filename);
ast_xml_close(doctree->doc);
+ ast_free(doctree);
}
AST_RWLIST_UNLOCK(&xmldoc_tree);
More information about the asterisk-commits
mailing list