[asterisk-commits] eliel: trunk r156162 - /trunk/main/xmldoc.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Nov 12 11:28:03 CST 2008
Author: eliel
Date: Wed Nov 12 11:28:02 2008
New Revision: 156162
URL: http://svn.digium.com/view/asterisk?view=rev&rev=156162
Log:
- The paramname is a pointer allocated with strdup() or malloc(), so,
we need to free it with ast_free().
Modified:
trunk/main/xmldoc.c
Modified: trunk/main/xmldoc.c
URL: http://svn.digium.com/view/asterisk/trunk/main/xmldoc.c?view=diff&rev=156162&r1=156161&r2=156162
==============================================================================
--- trunk/main/xmldoc.c (original)
+++ trunk/main/xmldoc.c Wed Nov 12 11:28:02 2008
@@ -866,8 +866,8 @@
{
struct ast_str *syntax;
struct ast_xml_node *tmpnode, *node = fixnode;
- char *ret;
- const char *paramname, *paramtype, *attrname, *literal;
+ char *ret, *paramname;
+ const char *paramtype, *attrname, *literal;
int required, isenum, first = 1, isliteral;
syntax = ast_str_create(128);
@@ -941,7 +941,7 @@
(isenum || isliteral ? "" : ">"),
(required ? "" : "]"));
first = 0;
- ast_xml_free_attr(paramname);
+ ast_free(paramname);
}
/* return a common string. */
More information about the asterisk-commits
mailing list