Task #56974 - fixed.err
back to task #56974download
Error: GCC_ANALYZER_WARNING (CWE-775):
crun-HEAD/src/libcrun/criu.c:995: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:851:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 993| if (value == CLONE_NEWNET && def->linux->namespaces[i]->path != NULL)
# 994| {
# 995|-> inherit_new_net_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 996| if (UNLIKELY (inherit_new_net_fd < 0))
# 997| 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:1006: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:851:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 1004| if (value == CLONE_NEWPID && def->linux->namespaces[i]->path != NULL)
# 1005| {
# 1006|-> inherit_new_pid_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 1007| if (UNLIKELY (inherit_new_pid_fd < 0))
# 1008| return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path);