mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-02 17:37:17 +00:00
close fd monitor on error
This commit is contained in:
parent
c2cc9f0a9b
commit
eb2ebe7468
@ -145,6 +145,7 @@ int lxc_monitor_open(const char *name)
|
||||
|
||||
if (bind(fd, (const struct sockaddr *)&addr, sizeof(addr))) {
|
||||
lxc_log_syserror("failed to bind to '%s'", addr.sun_path);
|
||||
close(fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user