From 77b943ba09731447a92485aa10d928e696de6ed7 Mon Sep 17 00:00:00 2001 From: Aaron Krebs Date: Wed, 30 Jul 2014 18:04:17 +0200 Subject: [PATCH] Free memory. --- src/meshlink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/meshlink.c b/src/meshlink.c index d79739ca..bb17fcac 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -1526,6 +1526,10 @@ extern void meshlink_hint_address(meshlink_handle_t *mesh, char *hostname, struc append_config_file(mesh, n->name, "Address", full_addr_str); + free(addr_str); + free(port_str); + free(full_addr_str); + // TODO do we want to fire off a connection attempt right away? } -- 2.39.5