diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/peer.c | 7 |
1 files changed, 7 insertions, 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); } |