Task #92167 - fixed.err

back to task #92167
download
Error: GCC_ANALYZER_WARNING (CWE-401):
wayland-utils-1.2.0/wayland-info/wayland-info.c:1332:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 64)’
wayland-utils-1.2.0/wayland-info/wayland-info.c:1325:1: enter_function: entry to ‘handle_tablet_v2_tablet_pad_group’
wayland-utils-1.2.0/wayland-info/wayland-info.c:1330:47: call_function: inlined call to ‘zalloc’ from ‘handle_tablet_v2_tablet_pad_group’
wayland-utils-1.2.0/wayland-info/wayland-info.c:1330:47: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_pad_group’
wayland-utils-1.2.0/wayland-info/wayland-info.c:1332:9: branch_false: ...to here
wayland-utils-1.2.0/wayland-info/wayland-info.c:1332:9: throw: if ‘wl_list_insert’ throws an exception...
wayland-utils-1.2.0/wayland-info/wayland-info.c:1332:9: danger: ‘calloc(1, 64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
# 1330|   	struct tablet_pad_group_info *group = xzalloc(sizeof *group);
# 1331|   
# 1332|-> 	wl_list_insert(&pad_info->groups, &group->link);
# 1333|   	group->group = pad_group;
# 1334|   	zwp_tablet_pad_group_v2_add_listener(pad_group,

Error: GCC_ANALYZER_WARNING (CWE-401):
wayland-utils-1.2.0/wayland-info/wayland-info.c:1481:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 56)’
wayland-utils-1.2.0/wayland-info/wayland-info.c:1475:1: enter_function: entry to ‘add_tablet_v2_tablet_info’
wayland-utils-1.2.0/wayland-info/wayland-info.c:1479:43: call_function: inlined call to ‘zalloc’ from ‘add_tablet_v2_tablet_info’
wayland-utils-1.2.0/wayland-info/wayland-info.c:1479:43: call_function: inlined call to ‘fail_on_null’ from ‘add_tablet_v2_tablet_info’
wayland-utils-1.2.0/wayland-info/wayland-info.c:1481:9: branch_false: ...to here
wayland-utils-1.2.0/wayland-info/wayland-info.c:1481:9: throw: if ‘wl_list_init’ throws an exception...
wayland-utils-1.2.0/wayland-info/wayland-info.c:1481:9: danger: ‘calloc(1, 56)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
# 1479|   	struct tablet_info *tablet_info = xzalloc(sizeof *tablet_info);
# 1480|   
# 1481|-> 	wl_list_init(&tablet_info->paths);
# 1482|   	tablet_info->tablet = tablet;
# 1483|   	wl_list_insert(&tablet_seat->tablets, &tablet_info->link);