Scan Results

List of Findings

Error: RESOURCE_LEAK (CWE-404): [#def1]
/libqb/doxygen2man/doxygen2man.c:1025: path: Condition "cur_node->name", taking true branch.
/libqb/doxygen2man/doxygen2man.c:1025: path: Condition "strcmp((char *)cur_node->name, "memberdef") == 0", taking true branch.
/libqb/doxygen2man/doxygen2man.c:1028: path: Condition "kind", taking true branch.
/libqb/doxygen2man/doxygen2man.c:1028: path: Condition "strcmp(kind, "enum") == 0", taking true branch.
/libqb/doxygen2man/doxygen2man.c:1031: path: Condition "this_tag", taking true branch.
/libqb/doxygen2man/doxygen2man.c:1032: path: Condition "this_tag->type == XML_ELEMENT_NODE", taking true branch.
/libqb/doxygen2man/doxygen2man.c:1032: path: Condition "strcmp((char *)this_tag->name, "name") == 0", taking true branch.
/libqb/doxygen2man/doxygen2man.c:1033: path: Condition "this_tag->children", taking true branch.
/libqb/doxygen2man/doxygen2man.c:1034: alloc_fn: Storage is returned from allocation function "strdup".
/libqb/doxygen2man/doxygen2man.c:1034: var_assign: Assigning: "name" = storage returned from "strdup((char *)this_tag->children->content)".
/libqb/doxygen2man/doxygen2man.c:1034: path: Falling through to end of if statement.
/libqb/doxygen2man/doxygen2man.c:1037: path: Breaking from loop.
/libqb/doxygen2man/doxygen2man.c:1041: path: Condition "name", taking true branch.
/libqb/doxygen2man/doxygen2man.c:1043: path: Condition "si", taking true branch.
/libqb/doxygen2man/doxygen2man.c:1047: noescape: Resource "name" is not freed or pointed-to in "strdup".
/libqb/doxygen2man/doxygen2man.c:1054: leaked_storage: Variable "name" going out of scope leaks the storage it points to.