mirror of
https://github.com/neocturne/fastd.git
synced 2025-05-14 20:25:08 +02:00
Fix remote record memory leak
This commit is contained in:
parent
95491f3b7e
commit
8d2c058a19
1 changed files with 7 additions and 0 deletions
|
@ -230,6 +230,13 @@ static void delete_peer(fastd_context_t *ctx, fastd_peer_t *peer) {
|
|||
if (!peer->config)
|
||||
free(peer->protocol_config);
|
||||
|
||||
while (peer->remotes) {
|
||||
fastd_remote_t *remote = peer->remotes;
|
||||
peer->remotes = remote->next;
|
||||
|
||||
free(remote);
|
||||
}
|
||||
|
||||
free(peer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue