Skip to content

Commit

Permalink
img-streamer: Double close (USE_AFTER_FREE)
Browse files Browse the repository at this point in the history
CID 302718 (#1 of 1): Double close (USE_AFTER_FREE)
 Calling close(int) closes handle sockfd which has already been closed.

Signed-off-by: Adrian Reber <areber@redhat.com>
  • Loading branch information
adrianreber authored and avagin committed Oct 20, 2020
1 parent 59010ad commit b893034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion criu/img-streamer.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int img_streamer_init(const char *image_dir, int mode)
mutex_init(img_streamer_fd_lock);

if (install_service_fd(IMG_STREAMER_FD_OFF, sockfd) < 0)
goto err;
return -1;

return 0;

Expand Down

0 comments on commit b893034

Please sign in to comment.