Commit eb2ebe74 by dlezcano

close fd monitor on error

parent c2cc9f0a
...@@ -145,6 +145,7 @@ int lxc_monitor_open(const char *name) ...@@ -145,6 +145,7 @@ int lxc_monitor_open(const char *name)
if (bind(fd, (const struct sockaddr *)&addr, sizeof(addr))) { if (bind(fd, (const struct sockaddr *)&addr, sizeof(addr))) {
lxc_log_syserror("failed to bind to '%s'", addr.sun_path); lxc_log_syserror("failed to bind to '%s'", addr.sun_path);
close(fd);
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment