From: David Bauer Date: Sun, 5 Sep 2021 16:05:49 +0000 (+0200) Subject: remote: fix memory leak on host removal X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fc1fadf5eb7684db952e72558f26dffbf3c4dfda;p=project%2Fusteer.git 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 --- diff --git a/remote.c b/remote.c index 8e6e37e..3ca040e 100644 --- a/remote.c +++ b/remote.c @@ -195,6 +195,7 @@ remote_node_free(struct usteer_remote_node *node) return; avl_delete(&remote_hosts, &host->avl); + free(host->addr); free(host); }