Skip to content

Commit

Permalink
Fix socket leak
Browse files Browse the repository at this point in the history
  • Loading branch information
lakeman committed Aug 13, 2012
1 parent 3ab79d8 commit e69a492
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions monitor-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e69a492

Please sign in to comment.