Plug memory leak on error path in player_accept()
This commit is contained in:
parent
1e1dfc860a
commit
0dbb5bfd75
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ player_accept(void *unused)
|
|||
if (!inet_ntop(sap->sa_family, inaddr,
|
||||
np->hostaddr, sizeof(np->hostaddr))) {
|
||||
logerror("inet_ntop() failed: %s", strerror(errno));
|
||||
close(ns);
|
||||
player_delete(np);
|
||||
continue;
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue