[asterisk-commits] kmoore: branch 11 r397067 - in /branches/11: ./ main/xmldoc.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Aug 20 09:25:32 CDT 2013
Author: kmoore
Date: Tue Aug 20 09:25:30 2013
New Revision: 397067
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=397067
Log:
Fix xmldoc memory leak
This fixes a single-attribute memory leak that was occurring when the
"required" attribute was not true.
(closes issue ASTERISK-22249)
Reported by: Corey Farrell
Tested by: Corey Farrell
Patches:
xmldoc-free_attr_required.patch uploaded by Corey Farrell
........
Merged revisions 397064 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/11/ (props changed)
branches/11/main/xmldoc.c
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/11/main/xmldoc.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/xmldoc.c?view=diff&rev=397067&r1=397066&r2=397067
==============================================================================
--- branches/11/main/xmldoc.c (original)
+++ branches/11/main/xmldoc.c Tue Aug 20 09:25:30 2013
@@ -759,6 +759,7 @@
if ((paramtype = ast_xml_get_attribute(node, "required"))) {
if (!ast_true(paramtype)) {
optmidnode = 1;
+ ast_xml_free_attr(paramtype);
break;
}
ast_xml_free_attr(paramtype);
More information about the asterisk-commits
mailing list