Task #45158 - added.err
back to task #45158download
Error: GCC_ANALYZER_WARNING (CWE-401): crun-1.20-build/crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'libcrun_container_add_or_remove_mounts_from_file' crun-1.20-build/crun-HEAD/src/libcrun/utils.h:74:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc0((n_mounts + 1) * 8)' crun-1.20-build/crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' crun-1.20-build/crun-HEAD/src/libcrun/container.h:24: included_from: Included from here. crun-1.20-build/crun-HEAD/src/libcrun/container.c:23: included_from: Included from here. crun-1.20-build/crun-HEAD/src/libcrun/container.c:582:7: note: in expansion of macro 'crun_make_error' crun-1.20-build/crun-HEAD/src/libcrun/container.c:1622:12: note: in expansion of macro 'crun_make_error' crun-1.20-build/crun-HEAD/libocispec/src/ocispec/json_common.h:9: included_from: Included from here. crun-1.20-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7: included_from: Included from here. crun-1.20-build/crun-HEAD/src/libcrun/container.c:21: included_from: Included from here. crun-1.20-build/crun-HEAD/src/libcrun/container.c:4703:9: note: in expansion of macro 'YAJL_IS_ARRAY' crun-1.20-build/crun-HEAD/src/libcrun/container.c:4707:16: note: in expansion of macro 'YAJL_GET_ARRAY' crun-1.20-build/crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' # 72| { # 73| void *res = calloc (1, size); # 74|-> if (UNLIKELY (res == NULL)) # 75| OOM (); # 76| return res;