mirror of
git://github.com/lxc/lxc
synced 2025-08-31 00:59:33 +00:00
close fd monitor on error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user