Task #55482 - added.err

back to task #55482
download
Error: GCC_ANALYZER_WARNING (CWE-775):
crun-HEAD/src/libcrun/criu.c:1002:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_189.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:858:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 1000|         if (value == CLONE_NEWNET && def->linux->namespaces[i]->path != NULL)
# 1001|           {
# 1002|->           inherit_new_net_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 1003|             if (UNLIKELY (inherit_new_net_fd < 0))
# 1004|               return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path);

Error: GCC_ANALYZER_WARNING (CWE-775):
crun-HEAD/src/libcrun/criu.c:1013:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_210.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:858:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 1011|         if (value == CLONE_NEWPID && def->linux->namespaces[i]->path != NULL)
# 1012|           {
# 1013|->           inherit_new_pid_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 1014|             if (UNLIKELY (inherit_new_pid_fd < 0))
# 1015|               return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path);