Task #56854 - added.err
back to task #56854download
Error: GCC_ANALYZER_WARNING (CWE-775):
crun-HEAD/src/libcrun/criu.c:997:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_186.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:852:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 995| if (value == CLONE_NEWNET && def->linux->namespaces[i]->path != NULL)
# 996| {
# 997|-> inherit_new_net_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 998| if (UNLIKELY (inherit_new_net_fd < 0))
# 999| 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:1008:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_207.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:852:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 1006| if (value == CLONE_NEWPID && def->linux->namespaces[i]->path != NULL)
# 1007| {
# 1008|-> inherit_new_pid_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 1009| if (UNLIKELY (inherit_new_pid_fd < 0))
# 1010| return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path);