Scan Results

List of Findings

Error: RESOURCE_LEAK (CWE-404): [#def1]
/pacemaker/tools/cibsecret.c:492: path: Condition "__s == 1", taking false branch.
/pacemaker/tools/cibsecret.c:492: path: Condition "0", taking false branch.
/pacemaker/tools/cibsecret.c:492: alloc_fn: Storage is returned from allocation function "g_malloc0_n".
/pacemaker/tools/cibsecret.c:492: var_assign: Assigning: "__p" = storage returned from "g_malloc0_n(__n, __s)".
/pacemaker/tools/cibsecret.c:492: out_of_scope: Variable "__p" goes out of scope.
/pacemaker/tools/cibsecret.c:492: var_assign: Assigning: "argv" = "({...; __p;})".
/pacemaker/tools/cibsecret.c:494: path: Condition "peers == NULL", taking true branch.
/pacemaker/tools/cibsecret.c:495: leaked_storage: Variable "argv" going out of scope leaks the storage it points to.

Error: RESOURCE_LEAK (CWE-404): [#def2]
/pacemaker/tools/cibsecret.c:994: path: Condition "__s == 1", taking false branch.
/pacemaker/tools/cibsecret.c:994: path: Condition "0", taking false branch.
/pacemaker/tools/cibsecret.c:994: alloc_fn: Storage is returned from allocation function "g_malloc0_n".
/pacemaker/tools/cibsecret.c:994: var_assign: Assigning: "__p" = storage returned from "g_malloc0_n(__n, __s)".
/pacemaker/tools/cibsecret.c:994: out_of_scope: Variable "__p" goes out of scope.
/pacemaker/tools/cibsecret.c:994: var_assign: Assigning: "argv" = "({...; __p;})".
/pacemaker/tools/cibsecret.c:998: path: Condition "peers == NULL", taking true branch.
/pacemaker/tools/cibsecret.c:999: leaked_storage: Variable "argv" going out of scope leaks the storage it points to.