lib9p: fix listensrv() filedescriptor leaks
This commit is contained in:
parent
2401794cff
commit
dea2905783
1 changed files with 3 additions and 1 deletions
|
@ -44,11 +44,13 @@ listenproc(void *v)
|
|||
break;
|
||||
}
|
||||
|
||||
data = accept(ctl, ndir);
|
||||
data = accept(nctl, ndir);
|
||||
if(data < 0){
|
||||
fprint(2, "%s: accept %s: %r\n", argv0, ndir);
|
||||
close(nctl);
|
||||
continue;
|
||||
}
|
||||
close(nctl);
|
||||
|
||||
s = emalloc9p(sizeof *s);
|
||||
*s = *os;
|
||||
|
|
Loading…
Reference in a new issue