remote: fix memory leak on host removal

The host address is allocated on the heap, hence it has to be freed when
freeing the containing struct.

Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
David Bauer
2021-09-05 18:05:49 +02:00
parent bee7c7e0df
commit fc1fadf5eb

View File

@@ -195,6 +195,7 @@ remote_node_free(struct usteer_remote_node *node)
return;
avl_delete(&remote_hosts, &host->avl);
free(host->addr);
free(host);
}