This commit is contained in:
云风
2012-09-26 14:38:20 +08:00
parent a8714b116f
commit b21e08fc58

View File

@@ -48,7 +48,7 @@ master_release(struct master * m) {
int i;
for (i=0;i<REMOTE_MAX;i++) {
int fd = m->remote_fd[i];
if (fd < 0) {
if (fd >= 0) {
close(fd);
}
free(m->remote_addr[i]);