Task #52044 - fixed.err
back to task #52044download
Error: GCC_ANALYZER_WARNING (CWE-401): guestfs-tools-1.53.8/common/mltools/../options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of ‘key.<Ua320>.string.s’ guestfs-tools-1.53.8/common/mltools/../options/keys.c:218:1: enter_function: entry to ‘key_store_add_from_selector’ guestfs-tools-1.53.8/common/mltools/../options/keys.c:225:6: branch_false: following ‘false’ branch... guestfs-tools-1.53.8/common/mltools/../options/keys.c:227:17: branch_false: ...to here guestfs-tools-1.53.8/common/mltools/../options/keys.c:230:6: branch_false: following ‘false’ branch... guestfs-tools-1.53.8/common/mltools/../options/keys.c:232:12: branch_false: ...to here guestfs-tools-1.53.8/common/mltools/../options/keys.c:233:6: branch_false: following ‘false’ branch... guestfs-tools-1.53.8/common/mltools/../options/keys.c:237:6: branch_false: ...to here guestfs-tools-1.53.8/common/mltools/../options/keys.c:237:6: branch_false: following ‘false’ branch... guestfs-tools-1.53.8/common/mltools/../options/keys.c:240:7: branch_false: ...to here guestfs-tools-1.53.8/common/mltools/../options/keys.c:242:8: branch_false: following ‘false’ branch... guestfs-tools-1.53.8/common/mltools/../options/keys.c:246:34: branch_false: ...to here guestfs-tools-1.53.8/common/mltools/../options/keys.c:246:20: acquire_memory: allocated here guestfs-tools-1.53.8/common/mltools/../options/keys.c:247:8: branch_false: following ‘false’ branch... guestfs-tools-1.53.8/common/mltools/../options/keys.c:265:10: branch_false: ...to here guestfs-tools-1.53.8/common/mltools/../options/keys.c:265:10: call_function: calling ‘key_store_import_key’ from ‘key_store_add_from_selector’ guestfs-tools-1.53.8/common/mltools/../options/keys.c:265:10: return_function: returning to ‘key_store_add_from_selector’ from ‘key_store_import_key’ guestfs-tools-1.53.8/common/mltools/../options/keys.c:266:1: danger: ‘key.<Ua320>.string.s’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11) # 264| # 265| return key_store_import_key (ks, &key); # 266|-> } # 267| # 268| /* Turn /dev/mapper/VG-LV into /dev/VG/LV, in-place. */ Error: GCC_ANALYZER_WARNING (CWE-401): guestfs-tools-1.53.8/common/options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of 'key.<U2320>.string.s' guestfs-tools-1.53.8/common/options/keys.c:218:1: enter_function: entry to 'key_store_add_from_selector' guestfs-tools-1.53.8/common/options/keys.c:225:6: branch_false: following 'false' branch... guestfs-tools-1.53.8/common/options/keys.c:227:17: branch_false: ...to here guestfs-tools-1.53.8/common/options/keys.c:230:6: branch_false: following 'false' branch... guestfs-tools-1.53.8/common/options/keys.c:232:12: branch_false: ...to here guestfs-tools-1.53.8/common/options/keys.c:233:6: branch_false: following 'false' branch... guestfs-tools-1.53.8/common/options/keys.c:237:6: branch_false: ...to here guestfs-tools-1.53.8/common/options/keys.c:237:6: branch_false: following 'false' branch... guestfs-tools-1.53.8/common/options/keys.c:240:7: branch_false: ...to here guestfs-tools-1.53.8/common/options/keys.c:242:8: branch_false: following 'false' branch... guestfs-tools-1.53.8/common/options/keys.c:246:34: branch_false: ...to here guestfs-tools-1.53.8/common/options/keys.c:246:20: acquire_memory: allocated here guestfs-tools-1.53.8/common/options/keys.c:247:8: branch_false: following 'false' branch... guestfs-tools-1.53.8/common/options/keys.c:265:10: branch_false: ...to here guestfs-tools-1.53.8/common/options/keys.c:265:10: call_function: calling 'key_store_import_key' from 'key_store_add_from_selector' guestfs-tools-1.53.8/common/options/keys.c:265:10: return_function: returning to 'key_store_add_from_selector' from 'key_store_import_key' guestfs-tools-1.53.8/common/options/keys.c:266:1: danger: 'key.<U2320>.string.s' leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11) # 264| # 265| return key_store_import_key (ks, &key); # 266|-> } # 267| # 268| /* Turn /dev/mapper/VG-LV into /dev/VG/LV, in-place. */