Skip to content

Commit 03762c8

Browse files
authored
Merge pull request #2001 from eriksjolund/do-no-leak-error
linux: do not leak error
2 parents 9f30f81 + 60d8a60 commit 03762c8

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
@@ -5483,7 +5483,10 @@ join_process_namespaces (libcrun_container_t *container, pid_t pid_to_join, libc
54835483
{
54845484
/* If the namespace doesn't exist, just ignore it. */
54855485
if (errno == ENOENT)
5486-
continue;
5486+
{
5487+
crun_error_release (err);
5488+
continue;
5489+
}
54875490

54885491
ret = fds[i];
54895492
goto exit;

0 commit comments

Comments
 (0)