Task #335 - fixed.err

back to task #335
download
Error: GCC_ANALYZER_WARNING (CWE-401):
crun-1.14.4-build/crun-1.14.4/src/libcrun/container.c:24: included_from: Included from here.
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h: scope_hint: In function 'libcrun_container_get_features'
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h:71:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc0(136)'
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY'
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY'
#   69|   {
#   70|     void *res = calloc (1, size);
#   71|->   if (UNLIKELY (res == NULL))
#   72|       OOM ();
#   73|     return res;

Error: GCC_ANALYZER_WARNING (CWE-401):
crun-1.14.4-build/crun-1.14.4/src/libcrun/container.c:24: included_from: Included from here.
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h: scope_hint: In function ‘libcrun_container_get_features’
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h:71:21: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc0(136)’
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’
#   69|   {
#   70|     void *res = calloc (1, size);
#   71|->   if (UNLIKELY (res == NULL))
#   72|       OOM ();
#   73|     return res;