Skip to content

Commit

Permalink
service: don't leak a file descriptor
Browse files Browse the repository at this point in the history
CID 190777 (#1 of 1): Resource leak (RESOURCE_LEAK)
15. leaked_handle: Handle variable server_fd going out of scope leaks the handle.

Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
  • Loading branch information
avagin committed Jul 27, 2018
1 parent 8449b5f commit 78219aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion criu/cr-service.c
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ int cr_service(bool daemon_mode)
goto err;

if (close_status_fd())
return -1;
goto err;

while (1) {
int sk;
Expand Down

0 comments on commit 78219aa

Please sign in to comment.