mirror of
https://github.com/samhocevar/rinetd.git
synced 2025-04-26 04:50:21 +08:00
Fix a memory leak on configuration reload.
This old bug was apparently introduced in rinetd 0.52.
This commit is contained in:
parent
6c385facd2
commit
77548712d1
4
rinetd.c
4
rinetd.c
@ -293,9 +293,9 @@ static void readConfiguration(void)
|
||||
ServerInfo *srv = &seInfo[i];
|
||||
if (srv->fd != INVALID_SOCKET) {
|
||||
closesocket(srv->fd);
|
||||
free(srv->fromHost);
|
||||
free(srv->toHost);
|
||||
}
|
||||
free(srv->fromHost);
|
||||
free(srv->toHost);
|
||||
}
|
||||
/* Free memory associated with previous set. */
|
||||
free(seInfo);
|
||||
|
Loading…
Reference in New Issue
Block a user