Fix socket leak

This commit is contained in:
Jeremy Lakeman 2012-08-13 14:02:13 +09:30
parent 3ab79d8e5b
commit e69a492c2b

View File

@ -107,6 +107,7 @@ int monitor_client_open(struct monitor_state **res)
if (connect(fd, (struct sockaddr*)&addr, len) == -1) {
perror("connect");
close(fd);
return -1;
}