mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
- The paramname is a pointer allocated with strdup() or malloc(), so,
we need to free it with ast_free(). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@156162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -866,8 +866,8 @@ static char *xmldoc_get_syntax_cmd(struct ast_xml_node *fixnode, const char *nam
|
|||||||
{
|
{
|
||||||
struct ast_str *syntax;
|
struct ast_str *syntax;
|
||||||
struct ast_xml_node *tmpnode, *node = fixnode;
|
struct ast_xml_node *tmpnode, *node = fixnode;
|
||||||
char *ret;
|
char *ret, *paramname;
|
||||||
const char *paramname, *paramtype, *attrname, *literal;
|
const char *paramtype, *attrname, *literal;
|
||||||
int required, isenum, first = 1, isliteral;
|
int required, isenum, first = 1, isliteral;
|
||||||
|
|
||||||
syntax = ast_str_create(128);
|
syntax = ast_str_create(128);
|
||||||
@@ -941,7 +941,7 @@ static char *xmldoc_get_syntax_cmd(struct ast_xml_node *fixnode, const char *nam
|
|||||||
(isenum || isliteral ? "" : ">"),
|
(isenum || isliteral ? "" : ">"),
|
||||||
(required ? "" : "]"));
|
(required ? "" : "]"));
|
||||||
first = 0;
|
first = 0;
|
||||||
ast_xml_free_attr(paramname);
|
ast_free(paramname);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* return a common string. */
|
/* return a common string. */
|
||||||
|
Reference in New Issue
Block a user