Scan Results

List of Findings

Error: INCOMPLETE_DEALLOCATOR (CWE-404): [#def1]
/pacemaker/lib/cluster/election.c:101: allocation: Memory is allocated.
/pacemaker/lib/common/mainloop.c:1371: alloc_fn: Storage is returned from allocation function "pcmk__assert_alloc_as".
/pacemaker/include/crm/common/memory_internal.h:66: alloc_fn: Storage is returned from allocation function "calloc".
/pacemaker/include/crm/common/memory_internal.h:66: assign: Assigning: "ptr" = "calloc(nmemb, size)".
/pacemaker/include/crm/common/memory_internal.h:68: path: Condition "ptr == NULL", taking false branch.
/pacemaker/include/crm/common/memory_internal.h:72: return_alloc: Returning allocated memory "ptr".
/pacemaker/lib/common/mainloop.c:1371: assign: Assigning: "t" = "pcmk__assert_alloc_as("mainloop.c", <anonymous>, 1371U, 1UL, 40UL)".
/pacemaker/lib/common/mainloop.c:1373: path: Condition "name != NULL", taking true branch.
/pacemaker/lib/common/mainloop.c:1375: path: Falling through to end of if statement.
/pacemaker/lib/common/mainloop.c:1383: path: Switch case default.
/pacemaker/lib/common/mainloop.c:1383: path: Condition "trace_cs == NULL", taking true branch.
/pacemaker/lib/common/mainloop.c:1383: path: Condition "crm_is_callsite_active(trace_cs, _level, 0)", taking false branch.
/pacemaker/lib/common/mainloop.c:1383: path: Breaking from switch.
/pacemaker/lib/common/mainloop.c:1384: return_alloc: Returning allocated memory "t".
/pacemaker/lib/cluster/election.c:101: allocation: The field "cluster->priv->election->timeout" is allocated, but not released in the identified deallocator.
/pacemaker/lib/cluster/cluster.c:164: deallocator: Deallocator for "struct pcmk__cluster".