Task #55070 - fixed.err
back to task #55070download
Error: GCC_ANALYZER_WARNING (CWE-775):
crun-HEAD/src/libcrun/criu.c:973:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_163.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:839:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 971| if (value == CLONE_NEWNET && def->linux->namespaces[i]->path != NULL)
# 972| {
# 973|-> inherit_new_net_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 974| if (UNLIKELY (inherit_new_net_fd < 0))
# 975| 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:984:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_184.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:839:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 982| if (value == CLONE_NEWPID && def->linux->namespaces[i]->path != NULL)
# 983| {
# 984|-> inherit_new_pid_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 985| if (UNLIKELY (inherit_new_pid_fd < 0))
# 986| return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path);