Task #90320 - fixed.err

back to task #90320
download
Error: GCC_ANALYZER_WARNING (CWE-401):
clinfo-3.0.23.01.25/src/clinfo.c:4655:15: warning[-Wanalyzer-malloc-leak]: leak of ‘output.prop’
clinfo-3.0.23.01.25/src/clinfo.c:4583:5: enter_function: entry to ‘main’
clinfo-3.0.23.01.25/src/clinfo.c:4606:12: branch_false: following ‘false’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4606:12: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4610:16: branch_true: following ‘true’ branch (when ‘a < argc’)...
clinfo-3.0.23.01.25/src/clinfo.c:4611:33: branch_true: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4613:25: branch_false: following ‘false’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4615:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
clinfo-3.0.23.01.25/src/clinfo.c:4617:27: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4617:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
clinfo-3.0.23.01.25/src/clinfo.c:4619:27: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4619:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
clinfo-3.0.23.01.25/src/clinfo.c:4621:27: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4621:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
clinfo-3.0.23.01.25/src/clinfo.c:4623:27: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4623:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
clinfo-3.0.23.01.25/src/clinfo.c:4625:27: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4625:25: branch_false: following ‘false’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4627:25: branch_false: following ‘false’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4630:27: branch_false: following ‘false’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4632:29: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4632:27: branch_true: following ‘true’ branch (when the strings are equal)...
clinfo-3.0.23.01.25/src/clinfo.c:4633:25: branch_true: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4634:25: call_function: calling ‘parse_prop’ from ‘main’
clinfo-3.0.23.01.25/src/clinfo.c:4634:25: return_function: returning to ‘main’ from ‘parse_prop’
clinfo-3.0.23.01.25/src/clinfo.c:4610:16: branch_false: following ‘false’ branch (when ‘a >= argc’)...
clinfo-3.0.23.01.25/src/clinfo.c:4650:13: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4650:12: branch_true: following ‘true’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4651:17: branch_true: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4653:27: branch_true: following ‘true’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4653:27: branch_false: following ‘false’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4653:27: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4655:15: throw: if ‘clGetPlatformIDs’ throws an exception...
clinfo-3.0.23.01.25/src/clinfo.c:4655:15: danger: ‘output.prop’ leaks here; was allocated at [(29)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/28)
# 4653|   	output.detailed = !output.brief && !output.selected && !output.prop;
# 4654|   
# 4655|-> 	err = clGetPlatformIDs(0, NULL, &plist.num_platforms);
# 4656|   	if (err != CL_PLATFORM_NOT_FOUND_KHR)
# 4657|   		CHECK_ERROR(err, "number of platforms");