mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 21:37:22 +00:00
close fd on error path
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
4fa22bfca1
commit
e8b9ac8fdf
@ -69,6 +69,7 @@ static void lxc_monitor_fifo_send(struct lxc_msg *msg, const char *lxcpath)
|
||||
|
||||
ret = write(fd, msg, sizeof(*msg));
|
||||
if (ret != sizeof(*msg)) {
|
||||
close(fd);
|
||||
SYSERROR("failed to write monitor fifo %s", fifo_path);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user