Skip to content

Commit 60d8a60

Browse files
committed
linux: do not leak error
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
1 parent d0c1224 commit 60d8a60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libcrun/linux.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5485,7 +5485,10 @@ join_process_namespaces (libcrun_container_t *container, pid_t pid_to_join, libc
54855485
{
54865486
/* If the namespace doesn't exist, just ignore it. */
54875487
if (errno == ENOENT)
5488-
continue;
5488+
{
5489+
crun_error_release (err);
5490+
continue;
5491+
}
54895492

54905493
ret = fds[i];
54915494
goto exit;

0 commit comments

Comments
 (0)